Function at 0x4132e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4206f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx]
push ebp
push esi
push edi
mov ecx, ebx
call dword [eax + 0x24]
mov edi, dword [esp + 0x60]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x18], eax
call dword [edx + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call sub.mfc42.dll_CDC::CDC
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0
call sub.mfc42.dll_CDC::CDC
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.004098d0
mov esi, 0x4240ac
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.004098d0
mov dword [esp + 0x20], esi
test ebx, ebx
mov byte [esp + 0x58], 3
jne 0x41336a
xor eax, eax
jmp 0x41336d
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x34]
call sub.mfc42.dll_CDC::Attach
test ebx, ebx
jne 0x413388
xor eax, eax
jmp 0x41338b
mov eax, dword [ebx + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x44]
call sub.mfc42.dll_CDC::Attach
lea ecx, [esp + 0x30]
call sub.mfc42.dll_CDC::SaveDC
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], eax
call sub.mfc42.dll_CDC::SaveDC
mov esi, dword [esp + 0x6c]
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esi + 8]
push eax
mov eax, dword [ebx + 4]
sub ecx, ebp
push ecx
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call sub.mfc42.dll_CGdiObject::Attach
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ebp, dword [esi]
push 0
push 1
sub eax, ecx
mov ecx, dword [esi + 8]
push 1
sub ecx, ebp
push eax
push ecx
call dword [sym.imp.gdi32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.mfc42.dll_CGdiObject::Attach
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.mfc42.dll_CDC::SelectGdiObject
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x44]
push eax
push edx
call sub.mfc42.dll_CDC::SelectGdiObject
mov edx, dword [esi + 4]
mov ebp, dword [esi]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub eax, edx
sub ecx, ebp
test ebx, ebx
jne 0x41344b
xor ebp, ebp
jmp 0x41344e
mov ebp, dword [ebx + 4]
push 0xcc0020
push edx
mov edx, dword [esi]
push edx
push ebp
mov ebp, dword [sym.imp.gdi32.dll_BitBlt]
push eax
mov eax, dword [esp + 0x48]
push ecx
push 0
push 0
push eax
call ebp
mov eax, dword [esp + 0x68]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x34]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x60], ecx
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x6c], edx
sub ecx, dword [esi]
test edi, edi
jne 0x41349d
mov dword [esp + 0x64], edi
jmp 0x4134a4
mov edx, dword [edi + 4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x60]
push 0xcc0020
push edx
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x58]
push ecx
push 0
push 0
push eax
call ebp
push 0xffffff
lea ecx, [esp + 0x34]
call sub.mfc42.dll_CDC::SetBkColor
push 0
lea ecx, [esp + 0x34]
call sub.mfc42.dll_CDC::SetTextColor
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x60], ecx
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x6c], edx
sub ecx, dword [esi]
test edi, edi
jne 0x413504
mov dword [esp + 0x64], edi
jmp 0x41350b
mov edx, dword [edi + 4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x60]
push 0x660046
push edx
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
push 0
push 0
push eax
call ebp
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
sub ecx, edx
mov edx, dword [esi + 8]
sub edx, eax
push 0x8800c6
push 0
lea eax, [esp + 0x48]
neg eax
push 0
sbb eax, eax
and eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push edx
push 0
push 0
push ecx
call ebp
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x64], edx
sub ecx, dword [esi]
test edi, edi
jne 0x413586
mov dword [esp + 0x70], edi
jmp 0x41358d
mov edx, dword [edi + 4]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x64]
push 0x660046
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x7c]
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
push 0
push 0
push eax
call ebp
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x70], eax
sub esi, eax
push 0xcc0020
sub ecx, edx
push 0
lea eax, [esp + 0x38]
neg eax
push 0
sbb eax, eax
and eax, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x84]
push esi
push edx
mov edx, dword [ebx + 4]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
call sub.mfc42.dll_CDC::RestoreDC
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
call sub.mfc42.dll_CDC::RestoreDC
mov eax, dword [esp + 0x18]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov edi, 0x423218
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 4
call sub.mfc42.dll_CGdiObject::DeleteObject
mov esi, 0x422ce8
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 5
call sub.mfc42.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], esi
mov byte [esp + 0x58], 0
call fcn.0041ed40
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call fcn.0041ed40
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x14