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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dfa09
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x658aa8]
xor eax, esp
push eax
lea eax, [esp + 0x128]
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 + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [ebx + 0xd8]
push eax
push ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x44]
xor esi, esi
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x461bf2
mov dword [esp + 0x130], esi
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
lea esi, [esp + 0x64]
mov dword [eax + 0xc], ecx
call fcn.00457be0
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add esp, 0x10
push edx
push esi
push edi
mov ecx, ebx
call fcn.0043d120
cmp dword [ebx + 0x41c], 0
je 0x461530
mov eax, dword [ebx + 0x41c]
mov ecx, dword [eax + 0x40]
push 0
push 0
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0x48]
push 0
push esi
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 0x3c]
push 0
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x44]
lea ecx, [esp + 0x40]
push ecx
push 0
push edi
push 0
mov dword [esp + 0x58], 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 + 0x420], 0
je 0x461530
mov ecx, dword [ebx + 0x388]
mov eax, dword [ecx]
mov edx, dword [eax + 0x88]
call edx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x41c]
add eax, ecx
mov dword [esp + 0x4c], eax
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [esp + 0x14], 0
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
mov eax, dword [eax + 0x78]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cmp dword [esp + 0x14], eax
jg 0x461530
mov eax, ebx
call fcn.0043b810
cmp dword [ebx + 0x358], 0
jle 0x4616ce
mov ecx, dword [ebx + 0xd8]
mov edx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0xe0]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0xe4]
mov dword [esp + 0x20], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x178]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], ecx
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], ecx
sub dword [esp + 0x24], edx
sub dword [esp + 0x28], eax
cmp dword [ebx + 0x388], 0
je 0x4615c7
mov ecx, dword [ebx + 0x388]
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x4615c7
mov ecx, dword [ebx + 0x388]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
call eax
sub dword [esp + 0x24], eax
cmp dword [ebx + 0x38c], 0
je 0x4615f8
mov ecx, dword [ebx + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x4615f8
mov ecx, dword [ebx + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
call eax
sub dword [esp + 0x28], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x4617db
cmp dword [ebx + 0x358], eax
mov dword [esp + 0x14], eax
jle 0x4616ce
mov ecx, dword [ebx + 0x354]
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx*4]
cmp esi, dword [esp + 0x18]
je 0x4617b4
mov eax, dword [esi]
mov edx, dword [eax + 0x100]
mov ecx, esi
call edx
test al, al
je 0x4616b9
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4616b9
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
je 0x4616b9
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0xd8]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4616b9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x150]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x4619ba
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x358]
mov dword [esp + 0x14], eax
jl 0x461625
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x44]
cmp byte [ecx + 0x13d], 0
je 0x46177b
mov edx, dword [ebx]
mov eax, dword [edx + 0x124]
mov ecx, ebx
call eax
test al, al
je 0x46177b
mov eax, dword [ebx + 0x41c]
test eax, eax
je 0x46177b
test dword [eax + 0x14], 0x200
je 0x46177b
cmp byte [ebx + 0x438], 0
je 0x46177b
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_GetCaretPos]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea eax, [ebx + 0xd8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46177b
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x41c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x18]
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x428]
push 0
push ecx
lea esi, [esp + 0x34]
mov dword [esp + 0x38], edx
call fcn.0045bce0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 8
mov eax, dword [ebx + 0x388]
test eax, eax
je 0x461a1a
cmp eax, dword [esp + 0x18]
jne 0x4619ca
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov edx, dword [esp + 0x68]
push edx
call esi
xor al, al
jmp 0x461bf4
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
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 + 0x68]
push ecx
call esi
xor al, al
jmp 0x461bf4
mov byte [esp + 0x130], 1
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
lea esi, [esp + 0x80]
mov dword [eax + 0xc], ecx
call fcn.00457be0
add esp, 0x10
cmp dword [ebx + 0x358], 0
mov dword [esp + 0x14], 0
jle 0x461933
mov edx, dword [ebx + 0x354]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
cmp esi, dword [esp + 0x18]
je 0x461969
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x46191e
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46191e
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x4618e3
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
call edx
push eax
lea eax, [ebx + 0xd8]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46191e
mov ecx, dword [esp + 0x88]
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 + 0x150]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x4619b1
mov eax, dword [esp + 0x84]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x46191e
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
call eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46191e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x150]
push ecx
push edx
push edi
mov ecx, esi
call eax
test al, al
je 0x4619b1
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x358]
mov dword [esp + 0x14], eax
jl 0x461827
mov byte [esp + 0x130], 0
mov esi, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
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 + 0x84]
push eax
call esi
jmp 0x4616d4
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x80]
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 + 0x84]
push edx
call esi
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
push edi
push eax
call ebx
push edi
call esi
mov ecx, dword [esp + 0x68]
push ecx
call esi
xor al, al
jmp 0x461bf4
lea esi, [esp + 0x70]
call fcn.00457bb0
lea esi, [esp + 0x54]
call fcn.00457bb0
xor al, al
jmp 0x461bf4
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x461a1a
mov ecx, dword [ebx + 0x388]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x461a1a
push dword [esp + 0x18]
mov ecx, dword [ebx + 0x388]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x150]
push eax
push edi
call edx
test al, al
je 0x4619ba
mov eax, dword [ebx + 0x38c]
test eax, eax
je 0x461a9f
cmp eax, dword [esp + 0x18]
jne 0x461a4b
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
push edi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov ecx, dword [esp + 0x68]
push ecx
call esi
xor al, al
jmp 0x461bf4
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x461a9f
mov ecx, dword [ebx + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x461a9f
push dword [esp + 0x18]
mov ecx, dword [ebx + 0x38c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x150]
push edx
push edi
call eax
test al, al
je 0x4619ba
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0xd4]
push eax
mov ecx, ebx
call edx
mov byte [esp + 0x130], 2
mov eax, dword [esp + 0xd4]
cmp byte [eax], 0
jne 0x461bbd
cmp byte [ebx + 0x11d], 0
jne 0x461bbd
mov eax, dword [ebx + 0x564]
mov ecx, dword [ebx + 0x5a8]
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push eax
lea esi, [esp + 0x94]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x94], edx
mov byte [esp + 0x98], 0
call fcn.00428e20
mov byte [esp + 0x130], 3
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ebx + 0xe0]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x28], eax
lea esi, [esp + 0x2c]
mov eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.00461d60
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x20], eax
sub dword [esp + 0x24], edx
sub dword [esp + 0x28], ecx
test byte [ebx + 0x434], 4
mov eax, dword [ebx + 0x5ac]
jne 0x461b77
or eax, 4
mov edx, dword [ebx + 0x42c]
push eax
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x94]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x44]
push edi
call fcn.0045bee0
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0xa4]
add esp, 0x14
cmp eax, edx
je 0x461bb7
push eax
call fcn.0049b045
add esp, 4
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0xd8]
cmp eax, ecx
je 0x461bd8
push eax
call fcn.0049b045
add esp, 4
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov eax, dword [esp + 0x68]
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00499a1c
mov esp, ebp
pop ebp
ret 0xc