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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afa56
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x174]
push eax
push ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x465741
mov dword [esp + 0x1a0], esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
lea esi, [esp + 0x70]
mov dword [eax + 0xc], ecx
call fcn.0045c6e0
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add esp, 0x10
push edx
push esi
push edi
mov ecx, ebx
call fcn.0044e8b0
cmp dword [ebx + 0x694], 0
je 0x4650e0
mov eax, dword [ebx + 0x694]
mov ecx, dword [eax + 0x40]
push 0
push 0
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x48]
push 0
push esi
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x3c]
push 0
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0x44]
lea ecx, [esp + 0x48]
push ecx
push 0
push edi
push 0
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
push 1
mov ecx, eax
call edx
cmp byte [ebx + 0x698], 0
je 0x4650e0
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
call edx
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x694]
add eax, ecx
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
mov dword [esp + 0x14], 0
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0x24]
mov ecx, ebx
call edx
mov eax, dword [eax + 0x88]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x58]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jg 0x4650e0
mov eax, ebx
call fcn.0044d2d0
cmp dword [ebx + 0x660], 0
jle 0x465262
mov eax, dword [ebx + 0x174]
mov ecx, dword [ebx + 0x178]
mov edx, dword [ebx + 0x17c]
mov esi, dword [ebx + 0x180]
add eax, dword [ebx + 0x668]
add ecx, dword [ebx + 0x66c]
sub edx, dword [ebx + 0x670]
sub esi, dword [ebx + 0x674]
cmp dword [ebx + 0x688], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
je 0x46515b
mov ecx, dword [ebx + 0x688]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
call eax
test al, al
je 0x46515b
mov ecx, dword [ebx + 0x688]
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
call eax
sub dword [esp + 0x58], eax
cmp dword [ebx + 0x68c], 0
je 0x46518c
mov ecx, dword [ebx + 0x68c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
call eax
test al, al
je 0x46518c
mov ecx, dword [ebx + 0x68c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
call eax
sub dword [esp + 0x5c], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x46536e
cmp dword [ebx + 0x660], eax
mov dword [esp + 0x14], eax
jle 0x465262
mov ecx, dword [ebx + 0x65c]
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx*4]
cmp esi, dword [esp + 0x18]
je 0x465347
mov eax, dword [esi]
mov edx, dword [eax + 0xdc]
mov ecx, esi
call edx
test al, al
je 0x46524d
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
mov ecx, esi
call edx
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46524d
mov edx, dword [esi]
mov eax, dword [edx + 0x108]
mov ecx, esi
call eax
test al, al
je 0x46524d
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x174]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46524d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x138]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x465532
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x660]
mov dword [esp + 0x14], eax
jl 0x4651b9
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x694]
test eax, eax
je 0x46530e
test dword [eax + 0x14], 0x200
je 0x46530e
mov ecx, dword [ebx + 0x5c]
cmp byte [ecx + 0x145], 0
je 0x46530e
mov edx, dword [ebx]
mov eax, dword [edx + 0x100]
mov ecx, ebx
call eax
test al, al
je 0x46530e
cmp byte [ebx + 0x6b0], 0
je 0x46530e
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetCaretPos]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea eax, [ebx + 0x174]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46530e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x694]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
push 0
add edx, ecx
push eax
mov eax, 0xff000000
lea esi, [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
call fcn.0045fd20
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 8
mov eax, dword [ebx + 0x688]
test eax, eax
je 0x465593
cmp eax, dword [esp + 0x18]
jne 0x465542
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov edx, dword [esp + 0x74]
push edx
call esi
xor al, al
jmp 0x465743
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov ecx, dword [esp + 0x74]
push ecx
call esi
xor al, al
jmp 0x465743
mov byte [esp + 0x1a0], 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
lea esi, [esp + 0x44]
mov dword [eax + 0xc], ecx
call fcn.0045c6e0
add esp, 0x10
cmp dword [ebx + 0x660], 0
mov dword [esp + 0x14], 0
jle 0x4654bd
mov edx, dword [ebx + 0x65c]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
cmp esi, dword [esp + 0x18]
je 0x4654ea
mov edx, dword [esi]
mov eax, dword [edx + 0xdc]
mov ecx, esi
call eax
test al, al
je 0x4654a8
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4654a8
mov eax, dword [esi]
mov edx, dword [eax + 0x108]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x46546d
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
call edx
push eax
lea eax, [ebx + 0x174]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4654a8
mov ecx, dword [esp + 0x4c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x138]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x465529
mov eax, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x4654a8
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
call eax
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4654a8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x138]
push ecx
push edx
push edi
mov ecx, esi
call eax
test al, al
je 0x465529
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x660]
mov dword [esp + 0x14], eax
jl 0x4653b7
mov byte [esp + 0x1a0], 0
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [esp + 0x48]
push eax
call esi
jmp 0x465268
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov ebx, dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
push ecx
call ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x48]
push edx
call esi
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
push edi
push eax
call ebx
push edi
call esi
mov ecx, dword [esp + 0x74]
push ecx
call esi
xor al, al
jmp 0x465743
lea esi, [esp + 0x34]
call fcn.0045c6b0
lea esi, [esp + 0x60]
call fcn.0045c6b0
xor al, al
jmp 0x465743
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
call edx
test al, al
je 0x465593
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
call edx
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x465593
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x688]
mov edx, dword [ecx]
mov edx, dword [edx + 0x138]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call edx
test al, al
je 0x465532
mov eax, dword [ebx + 0x68c]
test eax, eax
je 0x465619
cmp eax, dword [esp + 0x18]
jne 0x4655c4
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
push edi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov ecx, dword [esp + 0x74]
push ecx
call esi
xor al, al
jmp 0x465743
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
call eax
test al, al
je 0x465619
mov ecx, dword [ebx + 0x68c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x465619
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x68c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
push edx
mov edx, dword [esp + 0x14]
push edx
push edi
call eax
test al, al
je 0x465532
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x104]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x104]
cmp word [eax], 0
jne 0x46570c
cmp byte [ebx + 0x1b9], 0
jne 0x46570c
mov ecx, dword [ebx + 0x748]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x6c4]
push 0xffffffffffffffff
lea edx, [esp + 0x84]
xor eax, eax
push ecx
lea esi, [esp + 0x84]
mov dword [esp + 0x84], edx
mov word [esp + 0x88], ax
call fcn.00444050
mov edx, dword [ebx + 0x17c]
sub edx, dword [ebx + 0x6bc]
mov eax, dword [ebx + 0x174]
add eax, dword [ebx + 0x6b4]
mov ecx, dword [ebx + 0x178]
add ecx, dword [ebx + 0x6b8]
mov esi, dword [ebx + 0x180]
sub esi, dword [ebx + 0x6c0]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x74c]
push edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x6a4]
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [ebx + 0x5c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
mov dword [esp + 0x58], esi
call fcn.0045feb0
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x98]
add esp, 0x18
cmp eax, ecx
je 0x465706
push eax
call fcn.0058622f
add esp, 4
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x104]
lea edx, [esp + 0x108]
cmp eax, edx
je 0x465727
push eax
call fcn.0058622f
add esp, 4
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
push edi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov ecx, dword [esp + 0x74]
push ecx
call esi
mov al, 1
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.005832f8
mov esp, ebp
pop ebp
ret 0xc