Function at 0x4c79ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x4c79f4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.004058f8
xor eax, eax
push ebp
push 0x4c7cf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405338
lea eax, [ebp - 0x128]
mov edx, dword [ebp - 4]
call fcn.00404e54
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
call fcn.0040ad4c
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x10]
call fcn.004054bc
mov eax, dword [ebp - 0xc]
call fcn.00405548
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00405548
sub ebx, eax
inc ebx
push ebx
mov eax, dword [ebp - 0x10]
call fcn.00405548
mov ecx, eax
lea eax, [ebp - 0xc]
pop edx
call fcn.00405734
lea eax, [ebp - 0xc]
mov edx, 0x4c7d10
call fcn.00405554
lea eax, [ebp - 0x12c]
mov edx, dword [ebp - 0xc]
call fcn.00404e54
mov eax, dword [ebp - 0x12c]
call fcn.0040aab8
test al, al
je 0x4c7cab
mov byte [ebp - 5], 1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405338
mov eax, dword [ebp - 0x14]
push eax
or ecx, 0xffffffff
mov edx, 0x4c7d20
mov eax, 0x4c7d38
call fcn.004c78fc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4c7ae5
mov eax, dword [ebp - 0x18]
dec eax
mov dword [esi + 0x98], eax
mov ebx, 1
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.0040a458
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
mov edx, 0x4c7d48
call fcn.00404ed8
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
call fcn.004054bc
mov edx, dword [ebp - 0x130]
xor ecx, ecx
mov eax, 0x4c7d38
call fcn.004c777c
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405664
je 0x4c7cab
mov eax, 0x804
call fcn.00409bb4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
call fcn.00405548
cmp eax, 2
jle 0x4c7c73
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x30
jne 0x4c7c73
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0xc]
mov dx, word [edx + 2]
call fcn.00404d98
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00409c98
mov eax, dword [ebp - 0x13c]
mov edx, 0x4c7d58
call fcn.00404fd8
jne 0x4c7c73
mov al, byte [0x4c7d5c]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
call fcn.00404e54
mov eax, dword [ebp - 0x148]
mov ecx, 0x4c7d68
mov edx, 0x4c7d74
call fcn.00410d44
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0xc]
call fcn.00404e54
mov eax, dword [ebp - 0x14c]
call fcn.0040a6a8
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push 2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00405488
cmp dword [ebp - 0x18], 0
jne 0x4c7c46
call sub.kernel32.dll_GetThreadLocale_1
and eax, 0xff
mov edx, dword [ebp - 0x1c]
cmp eax, dword [edx]
jne 0x4c7c46
mov eax, ebx
dec eax
mov dword [esi + 0x98], eax
mov edx, dword [ebp - 0xc]
mov eax, 0x4c7d7c
call fcn.00405860
mov edi, eax
test edi, edi
jle 0x4c7c73
mov eax, dword [ebp - 0xc]
call fcn.00405548
mov ecx, eax
sub ecx, edi
add ecx, 2
mov edx, edi
dec edx
lea eax, [ebp - 0xc]
call fcn.00405734
mov eax, dword [ebp - 0xc]
call fcn.00405548
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405538
mov edx, eax
mov eax, dword [ebp - 0x1c]
add eax, 4
pop ecx
call fcn.004086f8
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x94]
call fcn.00421030
inc ebx
jmp 0x4c7aea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7d00
lea eax, [ebp - 0x14c]
mov edx, 7
call fcn.00404bc4
lea eax, [ebp - 0x130]
call fcn.004052d8
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404bc4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004052f0
lea eax, [ebp - 4]
call fcn.004052d8
ret