Function at 0x4f2570
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x58
mov eax, dword [0x547570]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x4f25d5
mov ecx, ebp
shr ecx, 0x10
jne 0x4f25a3
mov edx, ebp
lea ecx, [esp + 0x10]
and edx, 0xffff
push edx
call fcn.00413ae0
jmp 0x4f25d5
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4f25d5
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4f25d5
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x50]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x547828]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov eax, dword [0x548134]
mov dword [esp + 0x14], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [esp + 0x20], edx
xor ecx, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x30], ecx
push 0x13
push edx
mov dword [esp + 0x3c], ecx
push 0xe
push 0x400
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x60], 0x554e0c
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4f265f
lea ecx, [esp + 0x28]
push 0x13
push ecx
push 0xf
push 0x400
call esi
lea edx, [esp + 0x28]
mov dword [esp + 0x60], edx
lea eax, [esp + 0x3c]
push 0x13
push eax
push 0x12
push 0x400
call esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.0053232e
add esp, 4
lea edx, [esp + 0x3c]
mov dword [esp + 0x54], eax
push 0x13
push edx
push 0x10
push 0x400
call esi
lea eax, [esp + 0x3c]
push eax
call fcn.0053232e
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], eax
push 0x13
push ecx
push 0x1010
push 0x400
call esi
lea edx, [esp + 0x3c]
push edx
call fcn.0053232e
mov esi, dword [esp + 0x78]
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x64], eax
jne 0x4f278f
mov eax, dword [0x547570]
lea ecx, [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x70], eax
je 0x4f2739
lea edx, [esp + 0x14]
shr edx, 0x10
jne 0x4f2701
xor eax, eax
lea ecx, [esp + 0x14]
mov ax, cx
lea ecx, [esp + 0x70]
push eax
call fcn.00413ae0
jmp 0x4f2739
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4f2739
push esi
lea ecx, [esp + 0x74]
call fcn.00405530
test eax, eax
je 0x4f2739
mov edi, dword [esp + 0x70]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00405c70
mov ecx, dword [esp + 0x70]
cmp eax, 0xffffffff
jne 0x4f2756
xor esi, esi
jmp 0x4f2764
mov edx, dword [esp + 0x10]
mov edi, dword [ecx - 8]
mov esi, dword [edx - 8]
sub esi, edi
sub esi, eax
mov edx, dword [0x547574]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x4f278f
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4f278f
mov ecx, dword [esp + 0x70]
add ecx, 0xfffffff4
push ecx
call fcn.00532222
add esp, 4
push ebp
mov dword [esp + 0x54], esi
call fcn.00532b98
lea esi, [eax + eax*2 + 0x64]
lea edx, [esi + esi]
push edx
call fcn.00532695
add esp, 8
dec esi
mov ebx, eax
lea eax, [esp + 0x50]
push esi
push ebx
push eax
push ebp
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
je 0x4f2827
test ebx, ebx
jne 0x4f27cd
xor ebp, ebp
jmp 0x4f27d6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x4f27e5
cmp ebp, dword [edi - 4]
jle 0x4f2800
lea ecx, [esp + 0x10]
call fcn.004124c0
push ebp
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4f2827
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
mov esi, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
test ebx, ebx
je 0x4f2834
push ebx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x6c]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x4f2851
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4f289b
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x4f2863
xor ebp, ebp
jmp 0x4f286c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x4f289b
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4f28ca
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4f28ca
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x58
ret