Function at 0x4301bf
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 0x4303cb
push dword [ebp + 8]
mov ecx, ebx
call fcn.0042feb7
test al, al
je 0x4304be
push 9
push dword [0x44dfc4]
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 0x43028f
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 0x4303cb
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.00403525
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 0x44da58
mov dword [esp + 0x34], ecx
call fcn.00402e01
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.004031e0
test eax, eax
je 0x4303c5
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 0x43036d
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.0040863e
push esi
push dword [edi + 0x290]
mov ecx, ebx
call fcn.004079fe
mov edi, dword [edi + 0x78]
push edi
lea ecx, [ebx + 0x74]
call fcn.00409692
push edi
mov ecx, ebx
call fcn.0040ab80
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.00420469
mov ebx, dword [esp + 0x10]
jmp 0x4303c7
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 0x4304a5
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.00403525
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