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

Disassembly:
sub esp, 0x130
push ebp
mov ebp, dword [esp + 0x138]
cmp dword [ebp], 0x66
push esi
mov esi, ecx
jne 0x45e78d
cmp dword [ebp + 0xc], 1
jne 0x45e78d
cmp dword [esi + 0xa8], 0
jne 0x45e11f
mov eax, dword [esi + 0x20]
push 0
push 1
push 0x1002
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0xa8], eax
test eax, eax
je 0x45e78d
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x8c]
push edx
push 0
push 0x104b
push eax
mov dword [esp + 0x9c], 0x1f
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb0], 0x50c308
mov dword [esp + 0xb4], 0x208
mov dword [esp + 0xac], 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x2c]
push 2
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x28], ecx
push ebx
mov ecx, esi
call fcn.0046eb28
mov eax, dword [ebp + 0x18]
push eax
call fcn.00470756
mov edi, eax
test edi, edi
je 0x45e78b
mov edx, dword [edi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
call edx
test byte [ebp + 0x10], 1
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
je 0x45e1d9
push 0xd
call ebp
push 0xe
jmp 0x45e1df
push 5
call ebp
push 8
mov dword [esp + 0x14], eax
call ebp
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
push ecx
mov ecx, esi
call edx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x45e244
cmp dword [esp + 0xa8], ebp
je 0x45e244
lea eax, [esp + 0xf4]
push eax
mov ecx, esi
mov dword [esp + 0xf8], 2
mov dword [esp + 0x114], ebp
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], 0
call fcn.0044b900
mov dword [esp + 0xa8], ebp
push 0
lea ecx, [esp + 0x70]
push ecx
push ebx
mov ecx, esi
call fcn.0046eb28
push 1
lea edx, [esp + 0x134]
push edx
push ebx
mov ecx, esi
call fcn.0046eb28
mov ecx, dword [esp + 0x30]
mov ebx, dword [esi + 0x58]
mov eax, ecx
sub eax, ebx
sub eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, ebx
mov ebx, dword [esi + 0x54]
mov dword [esp + 0x48], ecx
push eax
mov ecx, esi
call fcn.00459e40
mov ecx, dword [esi + 0x20]
push 0
push 0
mov ebp, eax
push 0x101d
inc ebp
push ecx
imul ebp, ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x6c]
add edx, ebp
add eax, 0xfffffffe
cmp edx, eax
jle 0x45e2d1
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x101d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x6c]
sub ebx, eax
add ebx, ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x20]
push 8
push ecx
push 0x102c
push edx
mov ebp, 1
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 8
je 0x45e2f5
mov ebp, 5
mov edx, dword [esi + 0x54]
mov eax, edx
sub eax, ebx
cmp eax, 0xffffffff
jle 0x45e35b
mov ecx, dword [esi + 0x58]
push ebp
mov ebp, dword [esp + 0x24]
push 0xff000000
push 0xff000000
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
push ebp
mov ecx, esi
call fcn.00459e40
imul eax, edx
add eax, dword [esp + 0x84]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0xc0]
push eax
mov eax, dword [esi + 0xa8]
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
push edx
push ebp
push edi
mov ecx, esi
call fcn.0045b470
jmp 0x45e35f
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x144]
add eax, 0x1c
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push ebp
mov ecx, esi
call fcn.00459e40
mov ecx, dword [esp + 0x54]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
inc eax
imul eax, dword [esi + 0x54]
push 0
push 0
lea edx, [ecx + eax + 2]
mov eax, dword [esi + 0x20]
push 0x101d
push eax
mov dword [esp + 0x64], edx
call ebx
cmp dword [esp + 0x54], eax
jle 0x45e3ca
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x101d
push ecx
call ebx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 4]
push 0
push 0
push 0
lea edx, [esp + 0x60]
push edx
push 2
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x3c]
push ebp
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.00459eb0
mov dword [esp + 0x64], eax
mov eax, dword [eax + 0x7c]
cmp eax, 0xffffffff
je 0x45e42d
push eax
lea ecx, [esp + 0x18]
call fcn.00470c6e
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call fcn.004089e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00407c10
mov eax, dword [esp + 0x144]
test byte [eax + 0x10], 1
je 0x45e487
cmp dword [esi + 0x78], 0
jne 0x45e487
mov edx, dword [esi]
mov eax, dword [edx + 0x148]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x18]
call fcn.00470c6e
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call fcn.004089e0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00407c10
test dword [esp + 0x98], 0xf000
je 0x45e53e
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00459f30
push eax
mov ecx, esi
call fcn.00459eb0
cmp dword [eax + 0x74], 0
je 0x45e4c2
mov dword [esp + 0x44], 1
push 2
call fcn.00447130
mov ebx, eax
test ebx, ebx
je 0x45e53e
mov edx, dword [ebx + 4]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x74], 0
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
push ebp
mov ecx, esi
call fcn.00459e40
mov ecx, dword [esp + 0x6c]
inc eax
imul eax, dword [esi + 0x54]
add eax, dword [esp + 0x50]
push 0
add eax, ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0045a0f0
cmp dword [esp + 0x14], eax
jge 0x45e53e
push ebp
mov ecx, esi
call fcn.00459e40
imul eax, dword [esi + 0x54]
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
add eax, dword [esp + 0x6c]
push 1
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
push edi
mov ecx, ebx
call fcn.0045b0f0
mov edx, dword [esp + 0x1c]
push 2
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.0046eb28
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 4
push eax
push 0x50c308
push edi
mov ecx, esi
call fcn.0045a1e0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
sub ecx, 2
add eax, 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
push 0xa24
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push ebx
mov ecx, edi
call edx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0xc8]
push eax
mov ebx, 1
push ebx
push 0x105f
push ecx
mov dword [esp + 0xd8], 3
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x45e78b
jmp 0x45e600
mov eax, dword [esp + 0x2c]
mov ecx, eax
add eax, dword [esp + 0xd0]
cmp ecx, dword [esp + 0x84]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
jge 0x45e74e
cmp eax, dword [esp + 0x7c]
jle 0x45e74e
cmp eax, ecx
jle 0x45e74e
mov ecx, dword [esp + 0x64]
lea edx, [ebx - 1]
push edx
call fcn.0045b850
cmp eax, 0xffffffff
je 0x45e672
push eax
lea ecx, [esp + 0x18]
call fcn.00470c6e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.004089e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBrush.0
call fcn.00407c10
mov edx, dword [esp + 0x1c]
push 0x208
push 0x50c308
push ebx
push edx
mov ecx, esi
call fcn.0046ec33
test eax, eax
jne 0x45e695
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x45e6b3
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0xc
push eax
push 0x50c308
push edi
mov ecx, esi
call fcn.0045a1e0
mov dword [esp + 0x10], eax
mov ecx, eax
xor ebp, ebp
cmp ecx, 0x50c308
jne 0x45e6db
mov eax, dword [esp + 0xcc]
and eax, 3
sub eax, 1
je 0x45e6d6
sub eax, 1
jne 0x45e6db
lea ebp, [eax + 1]
jmp 0x45e6db
mov ebp, 2
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
add eax, 6
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
sub dword [esp + 0x3c], 6
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x144]
test byte [eax + 0x10], 1
mov dword [esp + 0x40], edx
je 0x45e72e
cmp dword [esi + 0x84], 0
jne 0x45e72e
mov eax, dword [eax + 8]
push ebx
push eax
push edi
mov ecx, esi
call fcn.0045dfd0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x45e74a
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
or ebp, 0xa24
push ebp
lea eax, [esp + 0x38]
push eax
push 0xffffffffffffffff
push ecx
mov ecx, edi
call edx
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x144]
test byte [eax + 0x10], 1
je 0x45e76a
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0045b980
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc8]
push edx
inc ebx
push ebx
push 0x105f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x45e600
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x130
ret 4