Function at 0x40b020
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x314]
push 0
push 0x104
push eax
push 0
push dword [edi + 0x10]
mov ebx, edx
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x53c], 0
call fcn.00438c60
lea eax, [ebp - 0x314]
mov edx, 0x14c
push 8
push eax
mov ecx, ebx
call fcn.00401960
push 0x104
lea edx, [ebp - 0x41c]
mov ecx, edi
call fcn.00424470
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x51c]
add esp, 0xc
mov dword [ebp - 0x524], eax
xor eax, eax
mov dword [ebp - 0x520], 0
mov word [ebp - 0x51c], ax
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x41c]
push eax
push 0
push 0xfde9
call esi
mov dword [ebp - 0x520], eax
test eax, eax
je 0x40b12a
lea ecx, [eax + 1]
cmp ecx, 0x80
jbe 0x40b10f
mov eax, ecx
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0047c4da
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x524], ecx
jmp 0x40b115
mov ecx, dword [ebp - 0x524]
inc eax
push eax
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x41c]
push eax
push 0
push 0xfde9
call esi
push 8
push dword [ebp - 0x524]
mov edx, 0x69
mov ecx, ebx
call fcn.00401960
mov eax, dword [ebp - 0x524]
add esp, 8
test eax, eax
je 0x40b15e
lea ecx, [ebp - 0x51c]
cmp eax, ecx
je 0x40b15e
push eax
call fcn.004568b0
add esp, 4
lea eax, [ebp - 0x538]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
push dword [edi + 0x10]
call fcn.00436340
cmp dword [edi + 0x14], 0xffffffff
lea eax, [edi + 0x14]
je 0x40b191
push 3
push eax
mov edx, 0xe7
mov ecx, ebx
call fcn.00401960
add esp, 8
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x530], 0
push 0
push eax
call fcn.0047df00
mov esi, dword [ebp - 0x538]
add esp, 0xc
test esi, esi
je 0x40b217
push 0
push 4
lea eax, [ebp - 0x530]
push eax
push 0x2c
push esi
call fcn.00438c60
test al, al
je 0x40b1dc
push 3
lea eax, [ebp - 0x530]
jmp 0x40b201
push 0x80
lea eax, [ebp - 0x10c]
push eax
push 0x1a5
push dword [0x4b2a34]
call dword [sym.imp.USER32.dll_LoadStringW]
push 8
lea eax, [ebp - 0x10c]
push eax
mov edx, 0xe8
mov ecx, ebx
call fcn.00401960
mov esi, dword [ebp - 0x538]
add esp, 8
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x530], 0
push 0
push eax
call fcn.0047df00
add esp, 0xc
test esi, esi
je 0x40b291
push 0
push 4
lea eax, [ebp - 0x530]
push eax
push 0x2d
push esi
call fcn.00438c60
test al, al
je 0x40b25c
push 3
lea eax, [ebp - 0x530]
jmp 0x40b281
push 0x80
lea eax, [ebp - 0x10c]
push eax
push 0x1a5
push dword [0x4b2a34]
call dword [sym.imp.USER32.dll_LoadStringW]
push 8
lea eax, [ebp - 0x10c]
push eax
mov edx, 0xe9
mov ecx, ebx
call fcn.00401960
add esp, 8
lea eax, [edi + 0x18]
mov edx, 0x156
push 3
push eax
mov ecx, ebx
call fcn.00401960
lea esi, [edi + 0x20]
mov edx, 0x157
push 3
push esi
mov ecx, ebx
call fcn.00401960
lea eax, [edi + 0x24]
mov edx, 0x158
push 3
push eax
mov ecx, ebx
call fcn.00401960
lea eax, [edi + 0x1c]
mov edx, 0x16a
push 4
push eax
mov ecx, ebx
mov dword [ebp - 0x530], eax
call fcn.00401960
mov ecx, dword [esi]
add esp, 0x20
test ecx, ecx
je 0x40b2f2
imul eax, dword [edi + 0x24], 0x64
xor edx, edx
div ecx
jmp 0x40b2f4
xor eax, eax
push eax
push str._u___
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.00401670
lea eax, [ebp - 0x314]
mov edx, 0x159
push 8
push eax
mov ecx, ebx
call fcn.00401960
push dword [edi + 0x28]
lea ecx, [ebp - 0x314]
push dword [edi + 0x2c]
call fcn.00417e20
lea eax, [ebp - 0x314]
mov edx, 0x15a
push 8
push eax
mov ecx, ebx
call fcn.00401960
mov eax, dword [edi + 0x34]
lea ecx, [ebp - 0x314]
movzx esi, ax
lea eax, [ebp - 0x528]
mov edi, esi
mov dword [ebp - 0x528], ecx
push edi
push str.__04X_
push 0
push 0
push eax
mov eax, ecx
push 0x104
push eax
call fcn.00401bf0
add esp, 0x44
test si, si
je 0x40b3b2
mov esi, dword [ebp - 0x528]
lea eax, [ebp - 0x10c]
sub eax, esi
sar eax, 1
push eax
push esi
push 2
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40b3d8
movzx eax, word [0x4b4290]
mov esi, 0x4b4290
mov ecx, 0xec
jmp 0x40b3c3
movzx eax, word [0x4b4310]
mov esi, 0x4b4310
mov ecx, 0x85
test ax, ax
jne 0x40b3d8
push 0x40
push esi
push ecx
push dword [0x4b2a34]
call dword [sym.imp.USER32.dll_LoadStringW]
push 8
push esi
mov edx, 0x15b
mov ecx, ebx
call fcn.00401960
mov eax, dword [ebp - 0x538]
add esp, 8
test eax, eax
je 0x40b4eb
lea ecx, [ebp - 0x53c]
push ecx
push dword [ebp - 0x53c]
push 0
push 0x28
push eax
call fcn.00438c60
push dword [ebp - 0x53c]
call fcn.0047c4da
add esp, 4
mov esi, eax
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x52c], esi
push eax
push dword [ebp - 0x53c]
push esi
push 0x28
push dword [ebp - 0x538]
call fcn.00438c60
push 8
push 0x4a3f2c
mov edx, 0xf0
mov dword [ebp - 0x528], 0x1ab
mov ecx, ebx
mov edi, esi
call fcn.00401960
movzx eax, word [esi]
add esp, 8
mov ecx, eax
test ax, ax
je 0x40b4e2
nop dword [eax]
mov esi, edi
movzx eax, ax
mov edx, edi
lea ecx, [esi + 2]
nop word [eax + eax]
cmp ax, 0x5c
je 0x40b48c
cmp ax, 0x2f
jne 0x40b48e
mov edx, ecx
movzx eax, word [esi + 2]
add esi, 2
add ecx, 2
test ax, ax
jne 0x40b480
push 8
push edx
mov edx, dword [ebp - 0x528]
mov ecx, ebx
call fcn.00401960
mov ecx, edi
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b4b5
sub ecx, edx
mov dword [ebp - 0x528], 0xf0
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
movzx eax, word [edi]
test ax, ax
jne 0x40b470
mov esi, dword [ebp - 0x52c]
push esi
call fcn.004568b0
add esp, 4
mov esi, dword [ebp - 0x534]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x434
push esi
call edi
mov ebx, dword [ebp - 0x530]
push dword [ebx]
push 0
push eax
call fcn.004781f0
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x52c], eax
push 0x40b
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b57c
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 8
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b56d
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40c
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b5e5
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 9
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b5d6
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40d
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b64e
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 0x10
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b63f
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40e
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b6b7
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 0x11
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b6a8
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x412
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b720
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 0x14
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b711
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40f
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b789
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 0x18
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b77a
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x410
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b7f2
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 0x19
and eax, 1
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b7e3
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x411
push dword [ebp - 0x534]
mov eax, dword [eax]
mov dword [ebp - 0x52c], eax
call edi
mov edi, eax
test edi, edi
je 0x40b84b
mov eax, dword [ebp - 0x52c]
push 0
shr eax, 0x1a
and eax, 1
push eax
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b3fa8], 0
jne 0x40b841
push 0xfffffffffffffffc
push edi
call ebx
mov dword [0x4b3fa8], eax
push 0x40ace0
push 0xfffffffffffffffc
push edi
call esi
push dword [ebp - 0x538]
call fcn.004362e0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret