Function at 0x40472a
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x43d64c
call fcn.0041d644
sub esp, 0x30
mov eax, dword [0x457f44]
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.commonlocal.cfg
lea eax, [ebp - 0x24]
push 0x45b9b0
push eax
call fcn.004362f3
mov eax, dword [eax]
push 0x4555e8
push eax
call fcn.0041d88f
pop ecx
mov edi, eax
pop ecx
lea ecx, [ebp - 0x24]
call fcn.004360aa
test edi, edi
je 0x40499c
mov eax, dword [0x457f44]
push ebx
mov dword [ebp - 0x1c], eax
xor bl, bl
mov byte [ebp - 4], 1
test byte [edi + 0xc], 0x10
jne 0x40496c
push esi
lea ecx, [ebp - 0x10]
call fcn.00436035
push edi
call fcn.0041e1d4
cmp al, 0xa
pop ecx
mov byte [ebp - 0x20], al
je 0x4047bd
cmp al, 0xd
je 0x4047bd
cmp al, 0xff
je 0x4047bd
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.00436461
jmp 0x40479a
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x404961
push 0x23
lea ecx, [ebp - 0x10]
call fcn.0043654c
cmp eax, 0xffffffff
je 0x4047ff
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.004307fd
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00436197
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004360aa
mov eax, dword [0x457f44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push 0x3d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0043654c
mov esi, eax
cmp esi, 0xffffffff
je 0x404949
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.004307fd
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00436197
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004360aa
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00430781
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00436197
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.004360aa
lea ecx, [ebp - 0x18]
call fcn.00430d80
lea ecx, [ebp - 0x18]
call fcn.00430ccc
lea ecx, [ebp - 0x14]
call fcn.00430d80
lea ecx, [ebp - 0x14]
call fcn.00430ccc
push str.CODEPAGE
push dword [ebp - 0x18]
call fcn.0041dfa9
pop ecx
test eax, eax
pop ecx
jne 0x4048bc
push dword [ebp - 0x14]
call fcn.0041e1c9
pop ecx
mov dword [ebp - 0x3c], eax
jmp 0x404949
push str.COUNTRY_ID
push dword [ebp - 0x18]
call fcn.0041dfa9
pop ecx
test eax, eax
pop ecx
jne 0x4048dd
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00436197
jmp 0x404949
push str.COUNTRY_CODE
push dword [ebp - 0x18]
call fcn.0041dfa9
pop ecx
test eax, eax
pop ecx
jne 0x4048fe
push dword [ebp - 0x14]
call fcn.0041e1c9
pop ecx
mov dword [ebp - 0x38], eax
jmp 0x404949
push str.KEYBOARD
push dword [ebp - 0x18]
call fcn.0041dfa9
pop ecx
test eax, eax
pop ecx
jne 0x40491f
push dword [ebp - 0x14]
call fcn.0041e1c9
pop ecx
mov dword [ebp - 0x34], eax
jmp 0x404949
push str.US_ENGLISH
push dword [ebp - 0x18]
call fcn.0041dfa9
pop ecx
test eax, eax
pop ecx
jne 0x404949
push 0x455694
push dword [ebp - 0x14]
call fcn.0041dfa9
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
pop ecx
inc bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004360aa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004360aa
test byte [edi + 0xc], 0x10
je 0x404792
pop esi
push edi
call fcn.0041d6a8
pop ecx
test bl, bl
pop ebx
jne 0x404990
push dword [ebp - 0x34]
mov ecx, dword [0x45b9a4]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
call fcn.0041015f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004360aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret