Function at 0x4e987c
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov edi, edx
mov dword [esp + 0xc], 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
push edi
call fcn.004eb5b4
add esp, 0x10
xor esi, esi
lea ebp, [esp + 0x20]
mov ebx, 1
mov dword [esp + 8], edi
nop dword [eax]
mov edi, ebx
and edi, 0xfbff
or edi, 0x400
push 0x40
lea eax, [esp + 0x29]
push eax
push 0x1001
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
push 4
push ebp
push 3
push edi
mov edi, dword [esp + 0x18]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
lea eax, [esp + 0x31]
push eax
call fcn.004eb5b4
add esp, 4
push ebp
call fcn.004eb5b4
add esp, 8
lea eax, [esp + 0x2d]
push eax
push edi
call fcn.004e3e7c
add esp, 0x10
test eax, eax
jne 0x4e9a12
sub esp, 0xc
push ebp
call fcn.004e438c
add esp, 0xc
push eax
push ebp
push edi
call fcn.004e4464
add esp, 0x10
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
cmove esi, eax
add ebx, ecx
cmp ebx, 0x38
jg 0x4e99cb
test esi, esi
je 0x4e993c
test esi, esi
jne 0x4e9a12
sub esp, 8
push 0x5f
push edi
call fcn.004e42a0
add esp, 0x10
test eax, eax
jne 0x4e99f7
sub esp, 8
push 0x2e
push edi
call fcn.004e42a0
add esp, 0x10
test eax, eax
je 0x4e9b3b
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4e9a0a
and ebx, 0x3ff
jmp 0x4e9a12
call sub.KERNEL32.DLL_GetSystemDefaultLangID
movzx ebx, ax
sub esp, 8
push 0x5f
push edi
call fcn.004e42a0
add esp, 0x10
test eax, eax
je 0x4e9ad9
inc eax
sub esp, 8
push 0x2e
mov dword [esp + 0x20], eax
push eax
call fcn.004e42a0
add esp, 0x10
test eax, eax
je 0x4e9a42
mov byte [eax], 0
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, 1
xor ebp, ebp
mov dword [esp + 0x18], ebx
nop word [eax + eax]
mov eax, edi
shl eax, 0xa
or eax, ebx
movzx ebx, ax
push 0x40
lea eax, [esp + 0x29]
push eax
push 0x1002
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [esp + 0x1c], eax
sub esp, 0xc
lea eax, [esp + 0x31]
push eax
call fcn.004eb5b4
add esp, 8
push dword [esp + 0x1c]
lea eax, [esp + 0x31]
push eax
call fcn.004e42f0
add esp, 0x10
xor ecx, ecx
test eax, eax
setne al
mov edx, 1
cmove ebp, edx
cmove esi, ebx
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
je 0x4e9ac2
mov cl, al
add edi, ecx
test ebp, ebp
je 0x4e9a5c
test ebp, ebp
je 0x4e9b1f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e9ad1
mov byte [eax], 0x2e
mov edi, dword [esp + 8]
mov ebx, esi
jmp 0x4e9ae5
and ebx, 0xfbff
or ebx, 0x400
sub esp, 8
push 0x2e
push edi
call fcn.004e42a0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x4e9afc
inc esi
jmp 0x4e9b0b
lea esi, [esp + 0x65]
push 7
push esi
push 0xb
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
push esi
call fcn.004ec45c
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
jmp 0x4e9b31
sub esp, 0xc
push 0x20000101
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ebx, ebx
mov eax, ebx
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0xc
push 0x20000101
jmp 0x4e9b27