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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48eee6
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x4b39fc]
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 + 0x158]
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 0x4384f8
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.0042ef30
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add esp, 0x10
push edx
push esi
push edi
mov ecx, ebx
call fcn.00422650
cmp dword [ebx + 0x69c], 0
je 0x437e80
mov eax, dword [ebx + 0x69c]
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 + 0x6a0], 0
je 0x437e80
mov ecx, dword [ebx + 0x584]
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 + 0x69c]
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 + 0x1c]
mov ecx, ebx
call edx
mov eax, dword [eax + 0xb8]
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 0x437e80
mov eax, ebx
call fcn.00420b30
cmp dword [ebx + 0x558], 0
jle 0x438002
mov eax, dword [ebx + 0x158]
mov ecx, dword [ebx + 0x15c]
mov edx, dword [ebx + 0x160]
mov esi, dword [ebx + 0x164]
add eax, dword [ebx + 0x560]
add ecx, dword [ebx + 0x564]
sub edx, dword [ebx + 0x568]
sub esi, dword [ebx + 0x56c]
cmp dword [ebx + 0x584], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
je 0x437efb
mov ecx, dword [ebx + 0x584]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
call eax
test al, al
je 0x437efb
mov ecx, dword [ebx + 0x584]
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
call eax
sub dword [esp + 0x58], eax
cmp dword [ebx + 0x588], 0
je 0x437f2c
mov ecx, dword [ebx + 0x588]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
call eax
test al, al
je 0x437f2c
mov ecx, dword [ebx + 0x588]
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 0x43810e
cmp dword [ebx + 0x558], eax
mov dword [esp + 0x14], eax
jle 0x438002
mov ecx, dword [ebx + 0x554]
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx*4]
cmp esi, dword [esp + 0x18]
je 0x4380e7
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
je 0x437fed
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
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 0x437fed
mov edx, dword [esi]
mov eax, dword [edx + 0x120]
mov ecx, esi
call eax
test al, al
je 0x437fed
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x158]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x437fed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x144]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x4382d2
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x558]
mov dword [esp + 0x14], eax
jl 0x437f59
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x69c]
test eax, eax
je 0x4380ae
test dword [eax + 0x14], 0x200
je 0x4380ae
mov ecx, dword [ebx + 0x44]
cmp byte [ecx + 0x179], 0
je 0x4380ae
mov edx, dword [ebx]
mov eax, dword [edx + 0x118]
mov ecx, ebx
call eax
test al, al
je 0x4380ae
cmp byte [ebx + 0x6b8], 0
je 0x4380ae
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 + 0x158]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4380ae
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x69c]
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.00432760
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 8
mov eax, dword [ebx + 0x584]
test eax, eax
je 0x438337
cmp eax, dword [esp + 0x18]
jne 0x4382e2
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 0x4384fa
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 0x4384fa
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.0042ef30
add esp, 0x10
cmp dword [ebx + 0x558], 0
mov dword [esp + 0x14], 0
jle 0x43825d
mov edx, dword [ebx + 0x554]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
cmp esi, dword [esp + 0x18]
je 0x43828a
mov edx, dword [esi]
mov eax, dword [edx + 0xf4]
mov ecx, esi
call eax
test al, al
je 0x438248
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
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 0x438248
mov eax, dword [esi]
mov edx, dword [eax + 0x120]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x43820d
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
call edx
push eax
lea eax, [ebx + 0x158]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x438248
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 + 0x144]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x4382c9
mov eax, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x438248
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
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 0x438248
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
push ecx
push edx
push edi
mov ecx, esi
call eax
test al, al
je 0x4382c9
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x558]
mov dword [esp + 0x14], eax
jl 0x438157
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 0x438008
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 0x4384fa
lea esi, [esp + 0x34]
call fcn.0042ef00
lea esi, [esp + 0x60]
call fcn.0042ef00
xor al, al
jmp 0x4384fa
mov ecx, dword [ebx + 0x584]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
call edx
test al, al
je 0x438337
mov ecx, dword [ebx + 0x584]
mov eax, dword [ecx]
mov edx, dword [eax + 0x50]
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 0x438337
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x584]
mov edx, dword [ecx]
mov edx, dword [edx + 0x144]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call edx
test al, al
je 0x4382d2
mov eax, dword [ebx + 0x588]
test eax, eax
je 0x4383c5
cmp eax, dword [esp + 0x18]
jne 0x43836c
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 0x4384fa
mov ecx, dword [ebx + 0x588]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
call eax
test al, al
je 0x4383c5
mov ecx, dword [ebx + 0x588]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
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 0x4383c5
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
push edx
mov edx, dword [esp + 0x14]
push edx
push edi
call eax
test al, al
je 0x4382d2
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x104]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x104]
cmp word [eax], 0
jne 0x4384c3
cmp byte [ebx + 0x19d], 0
jne 0x4384c3
mov ecx, dword [ebx + 0x968]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x8e4]
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.004020a0
mov eax, dword [ebx + 0x158]
add eax, dword [ebx + 0x6c0]
mov ecx, dword [ebx + 0x15c]
mov edx, dword [ebx + 0x160]
mov esi, dword [ebx + 0x164]
sub edx, dword [ebx + 0x6c8]
add ecx, dword [ebx + 0x6c4]
sub esi, dword [ebx + 0x6cc]
test byte [ebx + 0x6b4], 4
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x96c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], esi
jne 0x43847d
or eax, 4
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x44]
push eax
mov eax, dword [esp + 0x80]
push edx
mov edx, dword [ebx + 0x6ac]
push eax
push ecx
push edi
lea ecx, [esp + 0x48]
call fcn.00432900
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x94]
add esp, 0x14
cmp eax, edx
je 0x4384bd
push eax
call fcn.00479054
add esp, 4
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x4384de
push eax
call fcn.00479054
add esp, 4
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov eax, dword [esp + 0x74]
push eax
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.004771de
mov esp, ebp
pop ebp
ret 0xc