Function at 0x80e874
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov dword [esp + 8], ecx
mov dword [esp + 0x61], 0
mov dword [esp + 0x5d], 0
mov dword [esp + 0x59], 0
mov dword [esp + 0x55], 0
mov dword [esp + 0x51], 0
mov dword [esp + 0x4d], 0
mov dword [esp + 0x49], 0
mov dword [esp + 0x45], 0
mov dword [esp + 0x41], 0
mov dword [esp + 0x3d], 0
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp + 0x31], 0
mov dword [esp + 0x2d], 0
mov dword [esp + 0x29], 0
mov word [esp + 0x25], 0x6f6e
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x28], 0x65
mov dword [esp + 0x20], 0x303030
sub esp, 0xc
mov dword [esp + 0x18], edx
push edx
call fcn.008105dc
add esp, 0x10
xor ebx, ebx
mov ecx, 1
lea esi, [esp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], ecx
mov edi, ecx
and edi, 0xfbff
or edi, 0x400
push 0x40
lea ebp, [esp + 0x29]
push ebp
push 0x1001
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
push 4
push esi
push 3
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
push ebp
call fcn.008105dc
add esp, 4
push esi
call fcn.008105dc
add esp, 8
push ebp
mov edi, dword [esp + 0x18]
push edi
call fcn.0080729c
add esp, 0x10
test eax, eax
jne 0x80ea14
sub esp, 0xc
push esi
call fcn.008078f0
add esp, 0xc
push eax
push esi
push edi
call fcn.008079c8
add esp, 0x10
xor ecx, ecx
test eax, eax
setne dl
mov eax, 1
je 0x80e9b5
mov eax, ebx
mov cl, dl
mov edx, dword [esp + 4]
add edx, ecx
mov ecx, edx
cmp ecx, 0x38
jg 0x80e9ce
test eax, eax
mov ebx, eax
je 0x80e934
mov dword [esp + 4], ecx
test eax, eax
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
jne 0x80ea26
sub esp, 8
push 0x5f
push edi
call fcn.00807804
add esp, 0x10
test eax, eax
jne 0x80ea06
sub esp, 8
push 0x2e
push edi
call fcn.00807804
add esp, 0x10
test eax, eax
je 0x80eb5e
mov eax, dword [ebx + 4]
test eax, eax
je 0x80ea1a
and eax, 0x3ff
jmp 0x80ea22
mov ebx, dword [esp + 8]
jmp 0x80ea26
call sub.KERNEL32.DLL_GetSystemDefaultLangID
movzx eax, ax
mov dword [esp + 4], eax
sub esp, 8
push 0x5f
push edi
call fcn.00807804
add esp, 0x10
test eax, eax
je 0x80eafc
inc eax
sub esp, 8
push 0x2e
mov dword [esp + 0x20], eax
push eax
call fcn.00807804
add esp, 0x10
test eax, eax
je 0x80ea56
mov byte [eax], 0
mov dword [esp + 0x10], eax
mov edi, 1
xor ebx, ebx
xor ebp, ebp
nop
mov eax, edi
shl eax, 0xa
or eax, dword [esp + 4]
movzx ecx, ax
push 0x40
lea esi, [esp + 0x29]
push esi
push 0x1002
mov dword [esp + 0x28], ecx
push ecx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [esp + 0x18], eax
sub esp, 0xc
push esi
call fcn.008105dc
add esp, 8
push dword [esp + 0x1c]
push esi
call fcn.00807854
add esp, 0x10
xor ecx, ecx
test eax, eax
setne dl
mov eax, 1
jne 0x80eac4
mov esi, dword [esp + 0x1c]
jne 0x80eacc
cmp dword [esp + 0x18], 0
jne 0x80ead5
jmp 0x80eae1
mov eax, ebp
mov esi, dword [esp + 0x1c]
je 0x80eab7
mov esi, ebx
cmp dword [esp + 0x18], 0
je 0x80eae1
mov cl, dl
add edi, ecx
test eax, eax
mov ebx, esi
mov ebp, eax
je 0x80ea64
test eax, eax
je 0x80eb44
mov eax, dword [esp + 0x10]
mov ebp, esi
test eax, eax
je 0x80eaf2
mov byte [eax], 0x2e
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
jmp 0x80eb0c
mov eax, dword [esp + 4]
and eax, 0xfbff
or eax, 0x400
mov ebp, eax
sub esp, 8
push 0x2e
push edi
call fcn.00807804
add esp, 0x10
mov esi, eax
test esi, esi
je 0x80eb23
inc esi
jmp 0x80eb32
lea esi, [esp + 0x65]
push 7
push esi
push 0xb
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
push esi
call fcn.00811690
add esp, 0x10
mov dword [ebx], eax
mov eax, ebp
jmp 0x80eb56
sub esp, 0xc
push 0x20000101
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor eax, eax
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0xc
push 0x20000101
jmp 0x80eb4c