Function at 0x4c7440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x4c7448
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406d28
xor eax, eax
push ebp
push 0x4c7712
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x28]
push eax
call sub.oleaut32.dll_VariantInit_1
or edi, 0xffffffff
push 0
lea eax, [ebp - 0x28]
push eax
push 0x4c7724
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x4c74d0
lea eax, [ebp - 0x28]
call fcn.0041c1ac
mov edx, dword [eax + 8]
lea eax, [ebp - 0x10]
call fcn.00405440
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0x10]
call fcn.00404e54
mov eax, dword [ebp - 0x130]
call fcn.0040a6a8
mov edi, eax
test edi, edi
jle 0x4c74d0
mov eax, edi
dec eax
mov dword [esi + 0x98], eax
mov ebx, 1
push 0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x13c]
mov eax, ebx
call fcn.0040a458
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
mov edx, 0x4c7740
call fcn.00404ed8
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
call fcn.004054bc
mov eax, dword [ebp - 0x134]
call fcn.00405538
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x4c76b3
mov byte [ebp - 5], 1
lea eax, [ebp - 0x28]
call fcn.0041c1ac
mov edx, dword [eax + 8]
lea eax, [ebp - 0x10]
call fcn.00405440
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00405664
je 0x4c76bd
mov eax, 0x804
call fcn.00409bb4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
call fcn.00405548
cmp eax, 2
jle 0x4c7681
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x30
jne 0x4c7681
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x10]
mov dx, word [edx + 2]
call fcn.00404d98
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409c98
mov eax, dword [ebp - 0x140]
mov edx, 0x4c7754
call fcn.00404fd8
jne 0x4c7681
mov al, byte [0x4c7758]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x10]
call fcn.00404e54
mov eax, dword [ebp - 0x14c]
mov ecx, 0x4c7764
mov edx, 0x4c7770
call fcn.00410d44
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x10]
call fcn.00404e54
mov eax, dword [ebp - 0x150]
call fcn.0040a6a8
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
push 0x104
lea eax, [ebp - 0x12c]
push eax
push 2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.00405488
test edi, edi
jne 0x4c764f
call sub.kernel32.dll_GetThreadLocale_1
and eax, 0xff
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx]
jne 0x4c764f
mov eax, ebx
dec eax
mov dword [esi + 0x98], eax
mov edx, dword [ebp - 0x10]
mov eax, 0x4c7778
call fcn.00405860
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4c7681
mov eax, dword [ebp - 0x10]
call fcn.00405548
mov ecx, eax
sub ecx, dword [ebp - 0xc]
add ecx, 2
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 0x10]
call fcn.00405734
mov eax, dword [ebp - 0x10]
call fcn.00405548
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405538
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 4
pop ecx
call fcn.004086f8
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x94]
call fcn.00421030
inc ebx
cmp ebx, 0xa
jne 0x4c74d5
lea eax, [ebp - 0x28]
push eax
call sub.oleaut32.dll_VariantClear_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7719
lea eax, [ebp - 0x150]
mov edx, 7
call fcn.00404bc4
lea eax, [ebp - 0x134]
call fcn.004052d8
lea eax, [ebp - 0x130]
call fcn.00404ba0
lea eax, [ebp - 0x28]
call fcn.00415cdc
lea eax, [ebp - 0x10]
call fcn.004052d8
lea eax, [ebp - 4]
call fcn.00406cb4
ret