Function at 0x642b58
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x642b60
push ecx
push ebx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00406d68
xor eax, eax
push ebp
push 0x642ebb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [0x71504c], 0xffffffff
jne 0x642c57
lea eax, [ebp - 0x38]
call fcn.00646178
lea eax, [ebp - 0x38]
mov edx, 0x642ed8
call fcn.004071a4
mov eax, dword [ebp - 0x38]
call fcn.0047a474
test al, al
je 0x642c57
mov dl, 1
mov eax, dword [0x52a034]
call fcn.0052abd4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x642c50
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
call fcn.00646178
lea eax, [ebp - 0x3c]
mov edx, 0x642ed8
call fcn.004071a4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x585fd8]
call fcn.00586c54
push 1
mov ecx, 0x642f0c
mov edx, 0x642f28
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [0x71504c], eax
cmp dword [0x71504c], 0
jne 0x642c29
call fcn.00405448
jmp 0x642e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642c64
cmp dword [ebp - 0x18], 0
je 0x642c4f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
call fcn.004044bc
ret
cmp dword [0x71504c], 0
je 0x642e90
call sub.kernel32.dll_GetSystemDefaultLangID
mov word [ebp - 0xc], ax
call sub.kernel32.dll_GetUserDefaultUILanguage
mov word [ebp - 0xe], ax
cmp word [ebp - 0xc], 0x419
je 0x642cb6
cmp word [ebp - 0xe], 0x419
je 0x642cb6
cmp word [ebp - 0xc], 0x423
je 0x642cb6
cmp word [ebp - 0xe], 0x423
je 0x642cb6
cmp word [ebp - 0xc], 0x422
je 0x642cb6
cmp word [ebp - 0xe], 0x422
je 0x642cb6
cmp word [ebp - 0xc], 0x429
je 0x642cb6
cmp word [ebp - 0xe], 0x429
jne 0x642cba
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 0
jne 0x642e90
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00406dd4
cmp byte [ebp - 1], 0
je 0x642d05
xor ecx, ecx
mov dl, 1
mov eax, dword [0x585fd8]
call fcn.00586b50
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x642f44
mov edx, 0x642f78
mov eax, dword [ebp - 0x24]
call fcn.00587178
mov eax, dword [ebp - 0x24]
call fcn.004044bc
cmp dword [ebp - 0x14], 0
jne 0x642d4a
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.006440c4
cmp dword [ebp - 0x14], 0
je 0x642d4a
xor ecx, ecx
mov dl, 1
mov eax, dword [0x585fd8]
call fcn.00586b50
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x642f78
mov ecx, 0x642f44
mov eax, dword [ebp - 0x28]
call fcn.005877fc
mov eax, dword [ebp - 0x28]
call fcn.004044bc
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
call fcn.00478d14
mov eax, dword [ebp - 0x40]
mov edx, 0x642f90
call fcn.00407534
je 0x642d98
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.00478d14
mov eax, dword [ebp - 0x44]
mov edx, 0x642fa4
call fcn.00407534
je 0x642d98
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00478d14
mov eax, dword [ebp - 0x48]
mov edx, 0x642fb8
call fcn.00407534
jne 0x642d9c
mov byte [ebp - 9], 1
cmp byte [ebp - 9], 0
jne 0x642e90
cmp dword [ebp - 8], 0
je 0x642e90
mov dl, 1
mov eax, dword [0x490a3c]
call fcn.00496c18
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x642e89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x1c]
call fcn.00496130
mov dx, 0x3b
mov eax, dword [ebp - 0x1c]
call fcn.004960c4
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.004794a8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
call fcn.00495e88
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x642e62
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x14]
call fcn.00478d14
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00478d14
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.004794a8
mov edx, dword [ebp - 0x54]
pop eax
call fcn.00407534
jne 0x642e5a
mov byte [ebp - 9], 1
call fcn.00405448
jmp 0x642e90
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x642e11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642e90
cmp dword [ebp - 0x1c], 0
je 0x642e88
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
call fcn.004044bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642ec2
lea eax, [ebp - 0x5c]
mov edx, 0xa
call fcn.00406d78
lea eax, [ebp - 0x14]
call fcn.00406d70
lea eax, [ebp - 8]
call fcn.00406d70
ret