Function at 0x4c70ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x4c70b4
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 0x4c73d5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00406cb4
push eax
mov eax, dword [0x6e593c]
push eax
push 3
push 0
mov eax, dword [0x6e3d68]
push eax
call sub.ole32.dll_CoCreateInstance
cmp dword [ebp - 8], 0
je 0x4c7381
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x4c7379
lea eax, [ebp - 0x28]
push eax
call sub.oleaut32.dll_VariantInit_1
mov dword [ebp - 0xc], 0xffffffff
push 0
lea eax, [ebp - 0x28]
push eax
push 0x4c73e8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x4c7183
lea eax, [ebp - 0x28]
call fcn.0041c1ac
mov edx, dword [eax + 8]
lea eax, [ebp - 0x14]
call fcn.00405440
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0x14]
call fcn.00404e54
mov eax, dword [ebp - 0x130]
call fcn.0040a6a8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4c7183
mov eax, dword [ebp - 0xc]
dec eax
mov dword [esi + 0x98], eax
mov edi, 1
push 0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x13c]
mov eax, edi
call fcn.0040a458
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
mov edx, 0x4c7404
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 - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x4c7366
mov bl, 1
lea eax, [ebp - 0x28]
call fcn.0041c1ac
mov edx, dword [eax + 8]
lea eax, [ebp - 0x14]
call fcn.00405440
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00405664
je 0x4c7370
mov eax, 0x804
call fcn.00409bb4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
call fcn.00405548
cmp eax, 2
jle 0x4c7334
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x30
jne 0x4c7334
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x14]
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, 0x4c7418
call fcn.00404fd8
jne 0x4c7334
mov al, byte [0x4c741c]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x14]
call fcn.00404e54
mov eax, dword [ebp - 0x14c]
mov ecx, 0x4c7428
mov edx, 0x4c7434
call fcn.00410d44
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x14]
call fcn.00404e54
mov eax, dword [ebp - 0x150]
call fcn.0040a6a8
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
push 0x104
lea eax, [ebp - 0x12c]
push eax
push 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.00405488
cmp dword [ebp - 0xc], 0
jne 0x4c7302
call sub.kernel32.dll_GetThreadLocale_1
and eax, 0xff
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx]
jne 0x4c7302
mov eax, edi
dec eax
mov dword [esi + 0x98], eax
mov edx, dword [ebp - 0x14]
mov eax, 0x4c743c
call fcn.00405860
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4c7334
mov eax, dword [ebp - 0x14]
call fcn.00405548
mov ecx, eax
sub ecx, dword [ebp - 0x10]
add ecx, 2
mov edx, dword [ebp - 0x10]
dec edx
lea eax, [ebp - 0x14]
call fcn.00405734
mov eax, dword [ebp - 0x14]
call fcn.00405548
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405538
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, 4
pop ecx
call fcn.004086f8
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x94]
call fcn.00421030
inc edi
cmp edi, 0xa
jne 0x4c7188
lea eax, [ebp - 0x28]
push eax
call sub.oleaut32.dll_VariantClear_1
lea eax, [ebp - 8]
call fcn.00406cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c73dc
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 - 0x14]
call fcn.004052d8
lea eax, [ebp - 8]
call fcn.00406cb4
lea eax, [ebp - 4]
call fcn.00406cb4
ret