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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x38], esi
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x28], esi
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x38]
lea edi, [ebx + 4]
push eax
push dword [edi]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [ebx + 0x64], esi
jne 0x4301ee
push dword [ebp + 8]
mov ecx, ebx
call fcn.0042fcda
test al, al
je 0x4302e1
push 9
push dword [0x449ca4]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0x31
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x1c], ecx
cmp eax, 0xffffffff
jne 0x4300b2
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0x3026
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4301ee
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0040351e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x1c]
mov edi, dword [ebx + 0x78]
mov ebx, dword [ebx + 4]
cdq
sub eax, edx
sar eax, 1
sub dword [esp + 0x30], eax
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 0xa
add ecx, 0xf
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add eax, 0x76c
push eax
push 0x449a58
mov dword [esp + 0x34], ecx
call fcn.00402dfa
add esp, 8
movzx eax, ax
push eax
push esi
push esi
push 0x50000001
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
push ebx
lea ebx, [edi + 0x74c]
mov ecx, ebx
call fcn.004031d9
test eax, eax
je 0x4301e8
or dword [ebx + 0x54], 2
push esi
push esi
push 0x31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebx + 0x58], 8
mov dword [esp + 0x1c], eax
je 0x430190
push dword [ebx + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
and byte [ebx + 0x58], 0xf7
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov dword [ebx + 0x30], eax
call fcn.00408637
push esi
push dword [edi + 0x290]
mov ecx, ebx
call fcn.004079f7
mov edi, dword [edi + 0x78]
push edi
lea ecx, [ebx + 0x74]
call fcn.0040968b
push edi
mov ecx, ebx
call fcn.0040ab5e
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call edi
mov ecx, dword [esp + 0x10]
push ecx
push 0x11
mov dword [ecx + 0x7b4], eax
call edi
push eax
push 0x11
call edi
push eax
mov ecx, ebx
call fcn.00420419
mov ebx, dword [esp + 0x10]
jmp 0x4301ea
mov ebx, edi
mov edi, dword [esp + 0x18]
push dword [ebx + 0x64]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x3027
push dword [edi]
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4302c8
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.0040351e
mov eax, dword [esp + 0x3c]
push dword [ebx + 0x68]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
lea esi, [esp + 0x3c]
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
push edi
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x70]
mov eax, dword [esp + 0x30]
sub eax, ecx
sub eax, dword [esp + 0x28]
push 0xcc0020
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x14]
push esi
mov edi, dword [eax + 0x6c]
mov eax, dword [esp + 0x3c]
sub eax, edi
sub eax, dword [esp + 0x34]
sar ebx, 1
cdq
push esi
push dword [esp + 0x20]
add ecx, ebx
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], ecx
lea ecx, [edi + eax]
push edi
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ebx
push dword [ecx + 0x70]
mov dword [esp + 0x44], eax
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4