Function at 0x404fe0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x412005
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
mov eax, dword [0x415040]
push ebx
push ebp
mov ebp, dword [esp + 0x1ec]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
je 0x4050da
mov ecx, ebp
shr ecx, 0x10
jne 0x4050ae
mov edi, ebp
lea edx, [esp + 0xe0]
and edi, 0xffff
push 0x100
push edx
push edi
call fcn.00405340
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x405062
lea edx, [esp + 0xe0]
lea ecx, [esp + 0x10]
push edx
call fcn.00404720
jmp 0x4050da
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00404c40
cmp eax, ebx
je 0x4050a1
push esi
push eax
push edi
call fcn.00405340
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x4050a1
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00404c40
cmp eax, ebx
jne 0x405079
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404cf0
jmp 0x4050da
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
je 0x4050da
push esi
lea ecx, [esp + 0x14]
call fcn.00401a50
test eax, eax
je 0x4050da
mov eax, dword [esp + 0x10]
push esi
inc esi
push ebp
push esi
push eax
call fcn.004019f0
add esp, 0x10
mov eax, dword [0x4183d0]
mov edi, 1
cmp eax, ebx
mov dword [esp + 0x1e8], edi
jne 0x405189
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41531c
push 0x418404
mov dword [0x4183d8], ebx
mov dword [0x4183dc], ebx
mov dword [0x4183e0], 3
mov dword [0x4183e4], 0x41531c
mov dword [0x4183e8], 0x415318
mov dword [0x4183ec], edi
call esi
push 0x415318
push 0x4183f0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x14
push 0x418404
push 0xe
push 0x800
call esi
test eax, eax
je 0x405165
mov dword [0x4183e4], 0x418404
push 0x14
push 0x4183f0
push 0xf
push 0x800
call esi
test eax, eax
je 0x405183
mov dword [0x4183e8], 0x4183f0
mov dword [0x4183d0], edi
lea ecx, [esp + 0x18]
push 0xc6
push ecx
push 0x4183d8
push ebp
push ebx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
test eax, eax
je 0x405202
lea edx, [esp + 0x18]
test edx, edx
jne 0x4051b5
xor ebp, ebp
jmp 0x4051c2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004052a0
test eax, eax
je 0x405202
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x4051f4
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov ecx, dword [esp + 0x10]
mov byte [ecx + ebp], bl
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1f0]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebx
jl 0x405222
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x405249
mov edx, dword [0x415040]
cmp eax, ebx
mov dword [esi], edx
mov edi, eax
jne 0x405234
xor eax, eax
jmp 0x40523b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
mov ecx, esi
call fcn.00401ab0
mov edi, 1
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
mov edx, dword [0x415044]
mov byte [esp + 0x1e8], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405283
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405283
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00409660
add esp, 4
mov ecx, dword [esp + 0x1e0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1dc
ret