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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4c2f90]
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 0x420190
mov dword [esp + 0x34], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4201c3
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.0047654a
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.004226f2
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x60]
cmp eax, 2
jne 0x4202d4
cmp dword [esi + 0x68], ebx
je 0x4202d4
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x420249
push eax
call fcn.0045cd40
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.0045d030
push 0xffffffffffffffff
push eax
mov dword [esi + 0x58], eax
call fcn.0045cda0
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0041bf4a
call fcn.0041a1f0
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.0041a15d
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.0045d350
jmp 0x420332
cmp eax, 1
jne 0x420322
mov edx, dword [esi + 0x64]
cmp edx, ebx
je 0x420322
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.0045d580
jmp 0x420332
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x420332
push eax
call fcn.0045cd40
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x6c]
cmp eax, 2
jne 0x4203e2
cmp dword [esi + 0x74], ebx
je 0x4203e2
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x420357
push eax
call fcn.0045cd40
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.0045d030
push 0xffffffffffffffff
push eax
mov dword [esi + 0x5c], eax
call fcn.0045cda0
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x74]
mov ecx, esp
push eax
call fcn.0041bf4a
call fcn.0041a1f0
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.0041a15d
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.0045d350
jmp 0x420440
cmp eax, 1
jne 0x420430
mov edx, dword [esi + 0x70]
cmp edx, ebx
je 0x420430
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.0045d580
jmp 0x420440
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x420440
push eax
call fcn.0045cd40
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 0x420481
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x30], ebx
je 0x42048d
push dword [esp + 0x30]
call esi
cmp edi, ebx
je 0x420498
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
inc ebx
jmp 0x42019d