Function at 0x51447c
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 0x18]
push 0x16
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x18], eax
push esi
push eax
push 0x16
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne byte [esp + 0xb]
push 0
push dword [edi + 0x14]
push 0x17
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x14], eax
push esi
push eax
push 0x17
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne bl
push 0
push dword [edi + 0x1c]
push 0x14
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x1c], eax
push esi
push eax
push 0x14
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne bh
and bh, bl
push 0
push dword [edi + 0x20]
push 0x15
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x20], eax
push esi
push eax
push 0x15
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne bl
and bl, bh
push 0
push dword [edi + 0x24]
push 0x18
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x24], eax
push esi
push eax
push 0x18
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne bh
and bh, bl
push 0
push dword [edi + 0x28]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x28], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne bl
and bl, bh
push 0
push dword [edi + 0x2c]
push 0x51
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0050d45c
add esp, 0x10
mov dword [edi + 0x2c], eax
push esi
push eax
push 0x51
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
setne al
and al, bl
and al, byte [esp + 0xb]
movzx edi, al
sub esp, 0xc
push 4
call fcn.0050d45c
add esp, 0x10
mov esi, eax
test esi, esi
je 0x514628
push 4
push esi
push 0x19
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x514637
push esi
call fcn.00516910
add esp, 0x10
mov ebx, dword [esp + 0x24]
mov word [ebx], ax
sub esp, 0xc
push esi
call fcn.0050d46c
add esp, 0x10
mov esi, 1
jmp 0x514646
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x514640
push esi
call fcn.0050d46c
add esp, 0x10
xor esi, esi
mov ebx, dword [esp + 0x24]
and esi, edi
sub esp, 0xc
push 4
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x51468d
push 4
push edi
push 0x1a
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x51469c
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 2], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x5146a7
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x5146a5
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 3
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x5146ee
push 3
push edi
push 0x1b
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x5146fd
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 4], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x514708
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x514706
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 4
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x51474f
push 4
push edi
push 0x1c
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x51475e
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 6], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x514769
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x514767
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 3
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x5147b0
push 3
push edi
push 0x52
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x5147bf
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 8], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x5147ca
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x5147c8
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 4
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x514811
push 4
push edi
push 0x53
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x514820
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 0xa], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x51482b
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x514829
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 3
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x514872
push 3
push edi
push 0x54
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x514881
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 0xc], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x51488c
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x51488a
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 3
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x5148d3
push 3
push edi
push 0x55
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x5148e2
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 0xe], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x5148ed
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x5148eb
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 3
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x514934
push 3
push edi
push 0x56
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x514943
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 0x10], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x51494e
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x51494c
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
sub esp, 0xc
push 3
call fcn.0050d45c
add esp, 0x10
mov edi, eax
test edi, edi
je 0x514995
push 3
push edi
push 0x57
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x5149a4
push edi
call fcn.00516910
add esp, 0x10
mov word [ebx + 0x12], ax
sub esp, 0xc
push edi
call fcn.0050d46c
add esp, 0x10
mov eax, 1
jmp 0x5149af
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x5149ad
push edi
call fcn.0050d46c
add esp, 0x10
xor eax, eax
and esi, eax
movsx eax, word [ebx + 6]
sub esp, 0xc
push dword [eax*4 + 0x52f2e0]
call fcn.0050daf4
add esp, 0x10
mov dword [ebx + 0x30], eax
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret