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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0d16
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4e8070]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
and dword [esp + 0x2c], 0
xor eax, eax
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 0x174]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x45f98c
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and dword [esp + 0x80], 0
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x68]
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call fcn.0047dc0d
add esp, 0x14
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047483f
xor edi, edi
cmp dword [ebx + 0x694], edi
je 0x45fa88
mov eax, dword [ebx + 0x694]
mov ecx, dword [eax + 0x40]
push edi
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x48]
push edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x44]
push edi
mov dword [esp + 0x58], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push edi
push dword [ebp + 8]
mov ecx, eax
push edi
push edi
push edi
push 1
call dword [edx + 0x10]
cmp byte [ebx + 0x698], 0
je 0x45fa88
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x20], 0xffffffff
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x694]
mov dword [esp + 0x10], edi
mov esi, dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov eax, dword [eax + 0x88]
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push edi
push edi
push eax
push 1
mov ecx, esi
call dword [edx + 0x44]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x10], eax
jg 0x45fa88
mov eax, ebx
call fcn.0047356a
cmp dword [ebx + 0x660], edi
jle 0x45fd0e
mov eax, dword [ebx + 0x668]
lea esi, [ebx + 0x174]
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x66c]
add dword [esp + 0x20], eax
mov eax, dword [ebx + 0x670]
sub dword [esp + 0x24], eax
mov eax, dword [ebx + 0x674]
sub dword [esp + 0x28], eax
lea esi, [ebx + 0x688]
xor edi, edi
cmp dword [esi], edi
je 0x45faef
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x45faef
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x7c]
sub dword [esp + 0x24], eax
lea esi, [ebx + 0x68c]
cmp dword [esi], edi
je 0x45fb15
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x45fb15
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x84]
sub dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x45fbdc
cmp dword [ebx + 0x660], edi
mov dword [esp + 0x10], edi
jle 0x45fd0c
mov eax, dword [ebx + 0x65c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, dword [ebp + 0x10]
je 0x45fe78
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x45fbc3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
je 0x45fbc3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
je 0x45fbc3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
push eax
lea eax, [ebx + 0x174]
push eax
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
je 0x45fbc3
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x138]
test al, al
je 0x45fe78
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x660]
jl 0x45fb40
jmp 0x45fd0c
mov byte [esp + 0x80], 1
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call fcn.0047dc0d
and dword [esp + 0x24], 0
add esp, 0x14
cmp dword [ebx + 0x660], 0
jle 0x45fcfb
mov eax, dword [ebx + 0x65c]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, dword [ebp + 0x10]
je 0x45fe6f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x45fce7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
je 0x45fce7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
mov eax, dword [esi]
mov ecx, esi
je 0x45fcb8
call dword [eax + 0x40]
push eax
lea eax, [ebx + 0x174]
push eax
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
je 0x45fce7
push dword [esp + 0x54]
mov edi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp + 8]
call edi
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x138]
test al, al
je 0x45fe6f
push dword [esp + 0x50]
push dword [ebp + 8]
call edi
jmp 0x45fce7
call dword [eax + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call edi
test eax, eax
je 0x45fce7
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x138]
test al, al
je 0x45fe6f
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x660]
jl 0x45fc13
lea esi, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.0047dbee
xor edi, edi
mov eax, dword [ebx + 0x694]
cmp eax, edi
je 0x45fdab
test dword [eax + 0x14], 0x200
je 0x45fdab
mov eax, dword [ebx + 0x5c]
cmp byte [eax + 0x14d], 0
je 0x45fdab
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
test al, al
je 0x45fdab
cmp byte [ebx + 0x6b0], 0
je 0x45fdab
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
push dword [esp + 0x18]
lea eax, [ebx + 0x174]
push dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x45fdab
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x694]
mov edx, dword [eax + 0x1c]
push edi
push dword [eax + 0x18]
add edx, ecx
push dword [ebp + 8]
mov eax, 0xff000000
lea esi, [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
call fcn.0048097a
add esp, 0xc
mov eax, dword [ebx + 0x688]
cmp eax, edi
je 0x45fe05
cmp eax, dword [ebp + 0x10]
je 0x45fe78
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x45fe05
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx]
call dword [eax + 0x40]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45fe05
push dword [ebp + 0x10]
mov ecx, dword [ebx + 0x688]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0x138]
test al, al
je 0x45fe78
mov eax, dword [ebx + 0x68c]
cmp eax, edi
je 0x45fe88
cmp eax, dword [ebp + 0x10]
je 0x45fe78
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x45fe88
mov ecx, dword [ebx + 0x68c]
mov eax, dword [ecx]
call dword [eax + 0x40]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45fe88
push dword [ebp + 0x10]
mov ebx, dword [ebx + 0x68c]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
mov ecx, ebx
call dword [eax + 0x138]
test al, al
jne 0x45fe88
xor bl, bl
lea esi, [esp + 0x58]
call fcn.0047dbee
mov al, bl
jmp 0x45f977
lea esi, [esp + 0x3c]
call fcn.0047dbee
lea esi, [esp + 0x58]
call fcn.0047dbee
xor al, al
jmp 0x45f977
mov bl, 1
jmp 0x45fe5f