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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4c3a60]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x40]
push ecx
xor ebx, ebx
push eax
mov edi, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
cmp edi, ebx
je 0x42046d
mov dword [esp + 0x34], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4204a0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00476d3a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push eax
push ecx
push dword [esp + 0x3c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call fcn.00420f38
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x60]
cmp eax, 2
jne 0x4205b1
cmp dword [esi + 0x68], ebx
je 0x4205b1
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x420526
push eax
call fcn.0045d410
mov dword [esi + 0x58], ebx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
call fcn.0045d700
push 0xffffffffffffffff
push eax
mov dword [esi + 0x58], eax
call fcn.0045d470
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0041c23c
call fcn.0041a586
movzx eax, byte [esi + 0x78]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0x68]
push dword [esi + 0x58]
call fcn.0041a4f3
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
add esp, 0x1c
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x58]
mov dword [esp + 0x30], ebx
push edi
call fcn.0045da20
jmp 0x42060f
cmp eax, 1
jne 0x4205ff
mov edx, dword [esi + 0x64]
cmp edx, ebx
je 0x4205ff
mov al, byte [esi + 0x78]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x23], 1
push dword [esp + 0x20]
mov dword [esi + 0x58], edx
push eax
push ecx
push ebx
push ebx
push edx
push eax
push ecx
push dword [esp + 0x34]
push dword [esp + 0x34]
push edi
call fcn.0045dc50
jmp 0x42060f
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x42060f
push eax
call fcn.0045d410
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x6c]
cmp eax, 2
jne 0x4206bf
cmp dword [esi + 0x74], ebx
je 0x4206bf
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x420634
push eax
call fcn.0045d410
mov dword [esi + 0x5c], ebx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
call fcn.0045d700
push 0xffffffffffffffff
push eax
mov dword [esi + 0x5c], eax
call fcn.0045d470
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x74]
mov ecx, esp
push eax
call fcn.0041c23c
call fcn.0041a586
movzx eax, byte [esi + 0x79]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0x74]
push dword [esi + 0x5c]
call fcn.0041a4f3
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
add esp, 0x1c
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x5c]
mov dword [esp + 0x30], ebx
push edi
call fcn.0045da20
jmp 0x42071d
cmp eax, 1
jne 0x42070d
mov edx, dword [esi + 0x70]
cmp edx, ebx
je 0x42070d
mov al, byte [esi + 0x79]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x23], 1
push dword [esp + 0x20]
mov dword [esi + 0x5c], edx
push eax
push ecx
push ebx
push ebx
push edx
push eax
push ecx
push dword [esp + 0x34]
push dword [esp + 0x34]
push edi
call fcn.0045dc50
jmp 0x42071d
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x42071d
push eax
call fcn.0045d410
mov dword [esi + 0x5c], ebx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0xcc0020
push ebx
push ebx
push edi
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push ebx
push ebx
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x30]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
test eax, eax
je 0x42075e
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x30], ebx
je 0x42076a
push dword [esp + 0x30]
call esi
cmp edi, ebx
je 0x420775
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
inc ebx
jmp 0x42047a