Function at 0x453ac0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x58
mov eax, dword [0x46b21c]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x453b25
mov ecx, ebp
shr ecx, 0x10
jne 0x453af3
mov edx, ebp
lea ecx, [esp + 0x10]
and edx, 0xffff
push edx
call fcn.00402fe0
jmp 0x453b25
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x453b25
push esi
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x453b25
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 [0x47fdf8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov eax, dword [0x46c144]
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], 0x4837e4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x453baf
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.0045a78a
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.0045a78a
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.0045a78a
mov esi, dword [esp + 0x78]
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x64], eax
jne 0x453cdf
mov eax, dword [0x46b21c]
lea ecx, [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x70], eax
je 0x453c89
lea edx, [esp + 0x14]
shr edx, 0x10
jne 0x453c51
xor eax, eax
lea ecx, [esp + 0x14]
mov ax, cx
lea ecx, [esp + 0x70]
push eax
call fcn.00402fe0
jmp 0x453c89
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x453c89
push esi
lea ecx, [esp + 0x74]
call fcn.00401ce0
test eax, eax
je 0x453c89
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.004075c0
mov ecx, dword [esp + 0x70]
cmp eax, 0xffffffff
jne 0x453ca6
xor esi, esi
jmp 0x453cb4
mov edx, dword [esp + 0x10]
mov edi, dword [ecx - 8]
mov esi, dword [edx - 8]
sub esi, edi
sub esi, eax
mov edx, dword [0x46b220]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x453cdf
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x453cdf
mov ecx, dword [esp + 0x70]
add ecx, 0xfffffff4
push ecx
call fcn.00459de2
add esp, 4
push ebp
mov dword [esp + 0x54], esi
call fcn.0045a751
lea esi, [eax + eax*2 + 0x64]
lea edx, [esi + esi]
push edx
call fcn.00459ded
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 0x453d77
test ebx, ebx
jne 0x453d1d
xor ebp, ebp
jmp 0x453d26
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x453d35
cmp ebp, dword [edi - 4]
jle 0x453d50
lea ecx, [esp + 0x10]
call fcn.00402690
push ebp
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x453d77
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 0x453d84
push ebx
call fcn.00459de2
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 0x453da1
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x453deb
mov ecx, dword [0x46b21c]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x453db3
xor ebp, ebp
jmp 0x453dbc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.00401de0
test eax, eax
je 0x453deb
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 [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x453e1a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x453e1a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x58
ret