Function at 0x40b4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43a3c0
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0xd4], ebp
je 0x40b4f9
cmp dword [esi + 0x3c], ebp
je 0x40b4f9
push 1
call fcn.0040be50
jmp 0x40ba36
lea ecx, [esp + 0x14]
call fcn.00418d80
mov al, byte [esp + 0x13]
push 0x18
mov dword [esp + 0x50], ebp
mov byte [esp + 0x2c], al
call fcn.004305ac
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.00418d80
mov eax, dword [esi + 0x64]
mov byte [esp + 0x4c], 2
cmp eax, ebp
je 0x40b5bc
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x40b556
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1b8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
mov edi, dword [eax + 4]
sub edx, edi
mov ebp, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
sub eax, ecx
test eax, eax
jge 0x40b585
xor eax, eax
jmp 0x40b58e
sub ebp, ecx
cmp eax, ebp
jl 0x40b58e
lea eax, [ebp - 1]
test edx, edx
jge 0x40b596
xor edx, edx
jmp 0x40b5a1
mov ecx, ebx
sub ecx, edi
cmp edx, ecx
jl 0x40b5a1
lea edx, [ecx - 1]
cmp eax, dword [esi + 0x70]
jne 0x40b5b4
cmp edx, dword [esi + 0x74]
jne 0x40b5b4
mov dword [esi + 0x64], 0
jmp 0x40b5ba
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
xor ebp, ebp
lea ecx, [esp + 0x14]
call fcn.0041ec90
mov eax, dword [esi + 0x80]
lea edi, [esi + 0x80]
cmp eax, ebp
je 0x40b5fc
lea ecx, [esi + 0x7c]
call fcn.0041ec90
push edi
lea ecx, [esp + 0x18]
mov dword [esi + 0x9c], ebp
call fcn.0041ecb0
lea ecx, [esi + 0x78]
call fcn.0041ec90
mov ecx, edi
jmp 0x40b6ec
cmp dword [esi + 0x7c], ebp
je 0x40b6f1
lea eax, [esi + 0x78]
lea ecx, [esp + 0x14]
push eax
call fcn.0041ecb0
cmp dword [esi + 0x60], ebp
jne 0x40b6e9
cmp dword [esi + 0x5c], ebp
jne 0x40b6e9
cmp dword [esi + 0x50], ebp
jne 0x40b672
lea ecx, [esp + 0x1c]
call fcn.00418d80
lea ecx, [esi + 0x40]
mov byte [esp + 0x4c], 3
push ecx
lea ecx, [esp + 0x20]
call fcn.0041ec00
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.0041ed10
cmp dword [esp + 0x1c], ebp
je 0x40b65f
mov dword [esi + 0x50], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call fcn.0041ebf0
cmp dword [esi + 0x50], ebp
je 0x40b6e9
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x34]
push edx
lea edi, [esi + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x1b8]
mov ebx, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push edi
push edi
call ebx
test eax, eax
je 0x40b69e
push edi
lea ecx, [esp + 0x18]
call fcn.0041ec00
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x34]
push eax
call fcn.00407270
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x34]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1b8]
push eax
push edi
push edi
call ebx
test eax, eax
je 0x40b6e6
push edi
lea ecx, [esp + 0x18]
call fcn.0041ec00
mov dword [esi + 0x50], ebp
lea ecx, [esi + 0x78]
call fcn.0041ec90
lea ecx, [esp + 0x28]
xor ebx, ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0041ed40
test eax, eax
je 0x40b7a3
mov eax, dword [esp + 0x2c]
mov edi, dword [eax]
cmp edi, eax
je 0x40b7a3
mov ecx, dword [esi + 0x20]
lea edx, [edi + 8]
push edx
call fcn.00407260
xor ebp, ebp
cmp eax, ebp
je 0x40b73d
mov edi, dword [edi]
add ebx, eax
cmp edi, dword [esp + 0x2c]
jne 0x40b717
cmp ebx, 0xffff
je 0x40b742
jmp 0x40b7a5
mov ebx, 0xffff
xor ecx, ecx
lea edx, [esp + 0x24]
mov cl, bh
push 4
mov ch, bl
push edx
mov word [esp + 0x2e], cx
push ebp
mov ecx, esi
call fcn.0040b470
test eax, eax
jne 0x40b83c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b787
jmp 0x40ba10
xor ebp, ebp
cmp dword [esi + 0x5c], ebp
je 0x40b7ab
inc ebx
cmp dword [esi + 0x64], ebp
je 0x40b7b1
inc ebx
cmp dword [esi + 0x9c], ebp
je 0x40b7ba
inc ebx
cmp ebx, ebp
je 0x40b7cb
lea ecx, [esi + 0x7c]
call fcn.0041ec90
jmp 0x40b742
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40b805
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b7ea
mov eax, dword [esp + 0x2c]
push eax
call fcn.004304f0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], 0xffffffff
call fcn.0041ebf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
cmp dword [esi + 0x5c], ebp
je 0x40b88b
mov ecx, esi
call fcn.0040bdc0
test eax, eax
jne 0x40b88b
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b86f
jmp 0x40ba10
cmp dword [esi + 0x64], ebp
je 0x40b8da
mov ecx, esi
call fcn.0040be00
test eax, eax
jne 0x40b8da
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b8be
jmp 0x40ba10
cmp dword [esi + 0x9c], ebp
je 0x40b940
lea eax, [esi + 0xb0]
lea ecx, [esi + 0xa0]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x9c], ebp
call fcn.0040bbd0
test eax, eax
jne 0x40b940
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b924
jmp 0x40ba10
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0040ba50
test eax, eax
jne 0x40b98f
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b973
jmp 0x40ba10
cmp ebx, 0xffff
jne 0x40b9da
mov ecx, esi
call fcn.0040bca0
test eax, eax
jne 0x40b9da
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b9c1
jmp 0x40ba10
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.0041ebf0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x40ba14
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00421f10
cmp esi, edi
jne 0x40b9f9
mov eax, dword [esp + 0x2c]
push eax
call fcn.004304f0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], 0xffffffff
call fcn.0041ebf0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret