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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4c3a10]
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 0x42002b
mov dword [esp + 0x34], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42005e
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.0047674a
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.00420494
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x60]
cmp eax, 2
jne 0x42016f
cmp dword [esi + 0x68], ebx
je 0x42016f
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x4200e4
push eax
call fcn.0045be40
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.0045c130
push 0xffffffffffffffff
push eax
mov dword [esi + 0x58], eax
call fcn.0045bea0
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0041bdd3
call fcn.0041a05e
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.00419fcb
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.0045c450
jmp 0x4201cd
cmp eax, 1
jne 0x4201bd
mov edx, dword [esi + 0x64]
cmp edx, ebx
je 0x4201bd
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.0045c680
jmp 0x4201cd
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x4201cd
push eax
call fcn.0045be40
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x6c]
cmp eax, 2
jne 0x42027d
cmp dword [esi + 0x74], ebx
je 0x42027d
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x4201f2
push eax
call fcn.0045be40
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.0045c130
push 0xffffffffffffffff
push eax
mov dword [esi + 0x5c], eax
call fcn.0045bea0
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x74]
mov ecx, esp
push eax
call fcn.0041bdd3
call fcn.0041a05e
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.00419fcb
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.0045c450
jmp 0x4202db
cmp eax, 1
jne 0x4202cb
mov edx, dword [esi + 0x70]
cmp edx, ebx
je 0x4202cb
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.0045c680
jmp 0x4202db
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x4202db
push eax
call fcn.0045be40
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 0x42031c
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x30], ebx
je 0x420328
push dword [esp + 0x30]
call esi
cmp edi, ebx
je 0x420333
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
inc ebx
jmp 0x420038