Function at 0x4d6490
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a66a7
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x174], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x15c], ebx
mov eax, dword fs:[0x2c]
mov edx, dword [0x61a9fc]
mov edx, dword [eax + edx*4]
mov eax, dword [0x618540]
cmp eax, dword [edx + 4]
jg 0x4d6727
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x168], 0
mov eax, dword [esi + 4]
mov dword [ebp - 4], 1
test eax, eax
je 0x4d657d
mov ecx, dword [0x618538]
test ecx, ecx
je 0x4d657d
push 0
push 0
push dword [ebp + 0xc]
push eax
call ecx
test eax, eax
jle 0x4d66ff
push eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0
push eax
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x15c], 0
call fcn.004d6390
mov edi, dword [ebp - 0x170]
mov esi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x174]
push edi
push esi
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [0x618538]
jmp 0x4d65e5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d66ff
push 0
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4d66ff
push eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0
push eax
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x15c], 0
call fcn.004d6390
mov edi, dword [ebp - 0x170]
mov esi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x174]
push edi
push esi
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, eax
mov dword [ebp - 0x15c], esi
cmp ecx, edi
push ecx
cmovl edi, ecx
xor eax, eax
test edi, edi
lea ecx, [ebp - 0x170]
cmovg eax, edi
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
push eax
call fcn.004d6390
cmp dword [ebp - 0x170], 0
jle 0x4d66ff
mov edi, dword [ebp - 0x16c]
lea ecx, [ebp - 0x164]
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
call fcn.0046c430
mov esi, dword [ebp - 0x160]
push 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x164], 0
mov dword [ebx], 0
call fcn.0054454b
add esp, 4
mov dword [ebx], esi
cmp byte [ebp - 0x15c], 0
mov eax, dword [ebp - 0x160]
mov byte [ebp - 4], 2
je 0x4d6692
test eax, eax
je 0x4d6692
push dword [ebp - 0x164]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x160]
add esp, 8
push eax
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
cmp byte [ebp - 0x168], 0
mov dword [ebp - 4], 3
je 0x4d66d6
test edi, edi
je 0x4d66d6
mov eax, dword [ebp - 0x170]
lea ecx, [eax + eax]
push ecx
push edi
call fcn.0045fa10
add esp, 8
push edi
call fcn.0054454b
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLocaleInfo_Ex_
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
push 0x618540
call fcn.00544b4e
add esp, 4
cmp dword [0x618540], 0xffffffff
jne 0x4d64ef
push 0
push str.GetLocaleInfoEx
push str.Kernel32
mov ecx, 0x618538
mov dword [ebp - 4], 0
call fcn.00498340
push 0x5aa2c0
call fcn.0054492b
push 0x618540
call fcn.00544b04
add esp, 8
jmp 0x4d64ef