Function at 0x4745e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
test edi, edi
mov dword [ebp - 0x10], eax
mov esi, 0x485638
je 0x474612
push edi
call fcn.00470774
pop ecx
mov ebx, eax
call fcn.00474aec
mov eax, dword [esi]
test eax, eax
je 0x474624
cmp eax, 0x48560c
jne 0x47465e
cmp eax, 0x48560c
jne 0x474632
mov dword [ebp - 0xc], 1
push 0x2c
push 1
call fcn.0046fe9c
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x47465e
push 0xe
call sub.KERNEL32.DLL_SetLastError
push ebx
call fcn.004701ec
pop ecx
call fcn.00474af8
xor eax, eax
jmp 0x474ae3
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x474675
push eax
call fcn.004701ec
pop ecx
mov edx, dword [esi]
xor ecx, ecx
mov dword [edx + 0x24], ecx
test ebx, ebx
je 0x474682
cmp byte [ebx], 0
jne 0x474780
test ebx, ebx
jne 0x47474f
cmp dword [ebp - 0xc], 0
je 0x4746ad
mov eax, dword [esi]
push eax
call fcn.00474fb8
pop ecx
mov edx, dword [esi]
push edx
call fcn.004701ec
pop ecx
mov dword [esi], 0x48560c
jmp 0x4749bb
movsx edi, word [ebp + 8]
mov eax, edi
and eax, 4
cmp eax, 4
jne 0x4746cb
push 0x485430
mov edx, dword [esi]
push edx
call fcn.00475598
add esp, 8
mov ecx, edi
and ecx, 0x10
cmp ecx, 0x10
jne 0x4746e5
push 0x48543c
mov eax, dword [esi]
push eax
call fcn.00475598
add esp, 8
mov edx, edi
and edx, 0x20
cmp edx, 0x20
jne 0x4746ff
push 0x485447
mov ecx, dword [esi]
push ecx
call fcn.00475598
add esp, 8
mov eax, edi
and eax, 1
dec eax
jne 0x474717
push 0x48544f
mov edx, dword [esi]
push edx
call fcn.00475598
add esp, 8
and edi, 2
cmp edi, 2
jne 0x47472f
push 0x48545a
mov ecx, dword [esi]
push ecx
call fcn.00475598
add esp, 8
push ebx
call fcn.004701ec
pop ecx
call fcn.00475f50
call fcn.00474af8
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
jmp 0x474ae3
call sub.KERNEL32.DLL_GetUserDefaultLCID
mov dword [ebp - 0x10], eax
push 7
lea edx, [ebp - 8]
push edx
push 0xb
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 8]
push eax
call fcn.00476ac4
pop ecx
mov edi, dword [esi]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 8], eax
jmp 0x4749bb
push str.en_US
push edi
call fcn.00470840
add esp, 8
test eax, eax
je 0x4747e6
push esi
push edi
mov esi, 0x485469
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x2e
push edi
call fcn.004705c0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47490c
mov ecx, dword [ebp - 0x14]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebx + 3]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x47490c
push str.en_GB
push edi
call fcn.00470840
add esp, 8
test eax, eax
je 0x47484c
push esi
push edi
mov esi, 0x485473
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x2e
push edi
call fcn.004705c0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47490c
mov ecx, dword [ebp - 0x14]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebx + 3]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x47490c
push str.fr_FR
push edi
call fcn.00470840
add esp, 8
test eax, eax
je 0x4748af
push esi
push edi
mov esi, 0x48547d
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x2e
push edi
call fcn.004705c0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47490c
mov ecx, dword [ebp - 0x14]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebx + 3]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x47490c
push str.de_DE
push edi
call fcn.00470840
add esp, 8
test eax, eax
je 0x47490c
push esi
push edi
mov esi, 0x485487
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x2e
push edi
call fcn.004705c0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47490c
mov ecx, dword [ebp - 0x14]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebx + 3]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, edi
mov edx, 0x48548b
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x47494b
test cl, cl
je 0x47492f
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x47494b
add eax, 2
add edx, 2
test cl, cl
jne 0x474913
jne 0x47494b
mov eax, dword [esi]
push eax
call fcn.00474fb8
pop ecx
mov edx, dword [esi]
push edx
call fcn.004701ec
pop ecx
mov dword [esi], 0x48560c
jmp 0x4749bb
cmp byte [ebx], 0x4c
jne 0x47497b
cmp byte [ebx + 1], 0x43
jne 0x47497b
cmp byte [ebx + 2], 0x5f
jne 0x47497b
push ebx
call fcn.004701ec
pop ecx
call fcn.00474af8
push edi
mov ecx, dword [esi]
push ecx
call fcn.00475364
add esp, 8
jmp 0x474ae3
mov edi, dword [esi]
xor eax, eax
mov dword [edi + 8], eax
push ebx
push edi
call fcn.00474ba4
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4749bb
cmp dword [ebp - 0xc], 0
je 0x4749a8
mov edx, dword [esi]
push edx
call fcn.004701ec
pop ecx
mov dword [esi], 0x48560c
call fcn.00474af8
push ebx
call fcn.004701ec
pop ecx
xor eax, eax
jmp 0x474ae3
mov edx, dword [esi]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
push ebx
call fcn.004701ec
pop ecx
push 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
push edx
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
jne 0x474a17
mov ecx, dword [esi]
cmp dword [ecx + 8], 0
jne 0x474a17
push 0x20000103
call sub.KERNEL32.DLL_SetLastError
cmp dword [ebp - 0xc], 0
je 0x474a0b
mov eax, dword [esi]
push eax
call fcn.00474fb8
pop ecx
mov edx, dword [esi]
push edx
call fcn.004701ec
pop ecx
mov dword [esi], 0x48560c
call fcn.00474af8
xor eax, eax
jmp 0x474ae3
mov edx, dword [esi]
mov ecx, dword [edx + 4]
push ecx
call sub.KERNEL32.DLL_SetThreadLocale
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x474aca
push eax
call fcn.00474fb8
mov dx, word [ebp + 8]
pop ecx
push edx
mov ecx, dword [esi]
push ecx
call fcn.00474dfc
add esp, 8
test eax, eax
jne 0x474a7a
push 0x20000102
call sub.KERNEL32.DLL_SetLastError
cmp dword [ebp - 0xc], 0
je 0x474a71
mov eax, dword [esi]
push eax
call fcn.00474fb8
pop ecx
mov edx, dword [esi]
push edx
call fcn.004701ec
pop ecx
mov dword [esi], 0x48560c
call fcn.00474af8
xor eax, eax
jmp 0x474ae3
mov edx, dword [esi]
mov ecx, dword [edx]
push ecx
call fcn.004785c0
pop ecx
test eax, eax
jne 0x474a9b
lea eax, [ebp - 0x28]
push eax
mov edx, dword [esi]
mov ecx, dword [edx]
push ecx
call sub.KERNEL32.DLL_GetCPInfo
test eax, eax
jne 0x474aae
call fcn.00474af8
push 0x20000106
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
jmp 0x474ae3
mov edx, dword [ebp - 0x28]
mov dword [0x4853e4], edx
call fcn.00475f50
call fcn.00474af8
mov ecx, dword [esi]
mov eax, dword [ecx + 0x24]
jmp 0x474ae3
mov dword [0x4853e4], 1
call fcn.00475f50
call fcn.00474af8
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret