Function at 0x40b000
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x314]
push esi
push edi
push 0
push 0x104
push eax
push 0
push dword [ebx + 0x10]
mov edi, edx
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x530], ebx
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x53c], 0
call fcn.0043a390
lea eax, [ebp - 0x314]
mov edx, 0x14c
push 8
push eax
mov ecx, edi
call fcn.00401980
push 0x104
lea edx, [ebp - 0x41c]
mov ecx, ebx
call fcn.004246e0
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 0x40b111
lea edx, [eax + 1]
cmp edx, 0x80
jbe 0x40b0f6
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d547
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x524], ecx
jmp 0x40b0fc
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, edi
call fcn.00401980
mov eax, dword [ebp - 0x524]
add esp, 8
test eax, eax
je 0x40b145
lea ecx, [ebp - 0x51c]
cmp eax, ecx
je 0x40b145
push eax
call fcn.00457d30
add esp, 4
lea eax, [ebp - 0x538]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
push dword [ebx + 0x10]
call fcn.00437aa0
cmp dword [ebx + 0x14], 0xffffffff
lea eax, [ebx + 0x14]
je 0x40b178
push 3
push eax
mov edx, 0xe7
mov ecx, edi
call fcn.00401980
add esp, 8
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x528], 0
push 0
push eax
call fcn.0047ee20
mov esi, dword [ebp - 0x538]
add esp, 0xc
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
test esi, esi
je 0x40b200
push 0
push 4
lea eax, [ebp - 0x528]
push eax
push 0x2c
push esi
call fcn.0043a390
test al, al
je 0x40b1c9
push 3
lea eax, [ebp - 0x528]
jmp 0x40b1ea
push 0x80
lea eax, [ebp - 0x10c]
push eax
push 0x1a5
push dword [0x4b3a24]
call ebx
push 8
lea eax, [ebp - 0x10c]
push eax
mov edx, 0xe8
mov ecx, edi
call fcn.00401980
mov esi, dword [ebp - 0x538]
add esp, 8
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x528], 0
push 0
push eax
call fcn.0047ee20
add esp, 0xc
test esi, esi
je 0x40b276
push 0
push 4
lea eax, [ebp - 0x528]
push eax
push 0x2d
push esi
call fcn.0043a390
test al, al
je 0x40b245
push 3
lea eax, [ebp - 0x528]
jmp 0x40b266
push 0x80
lea eax, [ebp - 0x10c]
push eax
push 0x1a5
push dword [0x4b3a24]
call ebx
push 8
lea eax, [ebp - 0x10c]
push eax
mov edx, 0xe9
mov ecx, edi
call fcn.00401980
add esp, 8
mov esi, dword [ebp - 0x530]
mov edx, 0x156
push 3
mov ecx, edi
lea eax, [esi + 0x18]
push eax
call fcn.00401980
add esi, 0x20
mov edx, 0x157
push 3
push esi
mov ecx, edi
call fcn.00401980
mov eax, dword [ebp - 0x530]
mov edx, 0x158
add eax, 0x24
mov ecx, edi
push 3
push eax
mov dword [ebp - 0x528], eax
call fcn.00401980
mov eax, dword [ebp - 0x530]
mov edx, 0x16a
add eax, 0x1c
mov ecx, edi
push 4
push eax
call fcn.00401980
mov ecx, dword [esi]
add esp, 0x20
test ecx, ecx
je 0x40b2ee
mov eax, dword [ebp - 0x528]
xor edx, edx
imul eax, dword [eax], 0x64
div ecx
jmp 0x40b2f0
xor eax, eax
push eax
push str._u___
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.00401040
lea eax, [ebp - 0x314]
mov edx, 0x159
push 8
push eax
mov ecx, edi
call fcn.00401980
mov esi, dword [ebp - 0x530]
lea ecx, [ebp - 0x314]
push dword [esi + 0x28]
push dword [esi + 0x2c]
call fcn.00417eb0
lea eax, [ebp - 0x314]
mov edx, 0x15a
push 8
push eax
mov ecx, edi
call fcn.00401980
mov eax, dword [esi + 0x34]
lea ecx, [ebp - 0x314]
movzx esi, ax
mov eax, esi
mov dword [ebp - 0x528], ecx
push eax
push str.__04X_
push 0
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x528]
push 0
push eax
mov eax, ecx
push 0x104
push eax
call fcn.00401c00
add esp, 0x44
test si, si
je 0x40b3bf
mov esi, dword [ebp - 0x528]
lea eax, [ebp - 0x10c]
sub eax, esi
sar eax, 1
push eax
push esi
push 2
push dword [ebp - 0x52c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40b3e1
movzx eax, word [0x4b5280]
mov esi, 0x4b5280
mov ecx, 0xec
jmp 0x40b3d0
movzx eax, word [0x4b5300]
mov esi, 0x4b5300
mov ecx, 0x85
test ax, ax
jne 0x40b3e1
push 0x40
push esi
push ecx
push dword [0x4b3a24]
call ebx
push 8
push esi
mov edx, 0x15b
mov ecx, edi
call fcn.00401980
mov eax, dword [ebp - 0x538]
add esp, 8
test eax, eax
je 0x40b4e3
lea ecx, [ebp - 0x53c]
push ecx
push dword [ebp - 0x53c]
push 0
push 0x28
push eax
call fcn.0043a390
push dword [ebp - 0x53c]
call fcn.0047d547
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x528], ebx
push eax
push dword [ebp - 0x53c]
push ebx
push 0x28
push dword [ebp - 0x538]
call fcn.0043a390
push 8
mov esi, ebx
mov edx, 0xf0
push 0x4a4b4c
mov ecx, edi
mov ebx, 0x1ab
call fcn.00401980
mov eax, esi
add esp, 8
movzx eax, word [eax]
mov ecx, eax
test ax, ax
je 0x40b4d5
mov eax, esi
movzx ecx, cx
mov edx, esi
nop dword [eax]
cmp cx, 0x5c
je 0x40b491
cmp cx, 0x2f
je 0x40b491
add eax, 2
jmp 0x40b496
add eax, 2
mov edx, eax
movzx ecx, word [eax]
test cx, cx
jne 0x40b480
push 8
push edx
mov edx, ebx
mov ecx, edi
call fcn.00401980
mov ecx, esi
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b4b2
sub ecx, edx
mov ebx, 0xf0
sar ecx, 1
lea esi, [esi + ecx*2]
movzx ecx, word [esi + 2]
add esi, 2
test cx, cx
jne 0x40b472
push dword [ebp - 0x528]
call fcn.00457d30
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 + 0x1c]
push 0
push eax
call fcn.00479630
mov eax, dword [ebx + 0x1c]
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 0x40b576
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 [0x4b4f98], 0
jne 0x40b567
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40c
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b5e0
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 [0x4b4f98], 0
jne 0x40b5d1
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40d
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b64a
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 [0x4b4f98], 0
jne 0x40b63b
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40e
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b6b4
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 [0x4b4f98], 0
jne 0x40b6a5
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x412
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b71e
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 [0x4b4f98], 0
jne 0x40b70f
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x40f
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x52c], eax
call edi
mov ecx, eax
mov dword [ebp - 0x528], ecx
test ecx, ecx
je 0x40b788
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 [0x4b4f98], 0
jne 0x40b779
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x410
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
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 [0x4b4f98], 0
jne 0x40b7e3
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push dword [ebp - 0x528]
call esi
mov eax, dword [ebp - 0x530]
push 0x411
push dword [ebp - 0x534]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x52c], eax
call edi
mov edi, eax
test edi, edi
je 0x40b84c
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 [0x4b4f98], 0
jne 0x40b842
push 0xfffffffffffffffc
push edi
call ebx
mov dword [0x4b4f98], eax
push 0x40acc0
push 0xfffffffffffffffc
push edi
call esi
push dword [ebp - 0x538]
call fcn.00437a40
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret