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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4b7f10]
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 0x41b23a
mov dword [esp + 0x34], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x41b26d
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.0046cc2a
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.0041a1c5
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x60]
cmp eax, 2
jne 0x41b37e
cmp dword [esi + 0x68], ebx
je 0x41b37e
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x41b2f3
push eax
call fcn.00453420
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.00453710
push 0xffffffffffffffff
push eax
mov dword [esi + 0x58], eax
call fcn.00453480
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.00417ab2
call fcn.00415de2
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.00415d4f
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.00453a30
jmp 0x41b3dc
cmp eax, 1
jne 0x41b3cc
mov edx, dword [esi + 0x64]
cmp edx, ebx
je 0x41b3cc
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.00453c60
jmp 0x41b3dc
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x41b3dc
push eax
call fcn.00453420
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x6c]
cmp eax, 2
jne 0x41b48c
cmp dword [esi + 0x74], ebx
je 0x41b48c
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x41b401
push eax
call fcn.00453420
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.00453710
push 0xffffffffffffffff
push eax
mov dword [esi + 0x5c], eax
call fcn.00453480
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esi + 0x74]
mov ecx, esp
push eax
call fcn.00417ab2
call fcn.00415de2
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.00415d4f
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.00453a30
jmp 0x41b4ea
cmp eax, 1
jne 0x41b4da
mov edx, dword [esi + 0x70]
cmp edx, ebx
je 0x41b4da
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.00453c60
jmp 0x41b4ea
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x41b4ea
push eax
call fcn.00453420
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 0x41b52b
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x30], ebx
je 0x41b537
push dword [esp + 0x30]
call esi
cmp edi, ebx
je 0x41b542
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
inc ebx
jmp 0x41b247