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

Disassembly:
push 0xffffffffffffffff
push 0x45b258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x30], 0x460c84
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
neg eax
sbb eax, eax
mov dword [esp + 0x84], edi
and eax, 0xa
add eax, 0x12
cmp esi, edi
mov dword [esp + 0x10], eax
jne 0x41dc99
mov dword [esp + 0x30], 0x460bf4
mov dword [esp + 0x84], 1
jmp 0x41e3e4
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, eax
mov eax, dword [edx]
cmp eax, edi
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
jle 0x41e3d1
cmp ecx, edi
jle 0x41e3d1
mov edi, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0x8c]
mov eax, edi
sub eax, ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
sub ecx, ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CGdiObject::Attach
test ebx, ebx
jne 0x41dd18
mov dword [esp + 0xa0], ebx
jmp 0x41dd22
mov ecx, dword [ebx + 4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x8c], eax
call fcn.00456236
mov ecx, dword [esp + 0x8c]
xor edx, edx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x48], edx
push 0x18
mov dword [esp + 0x50], edx
push ecx
mov byte [esp + 0x90], 3
mov dword [esp + 0x5c], 0x461ba8
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], 0
call sub.MFC42u.DLL_CDC::FromHandle
test eax, eax
je 0x41ddaf
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x41ddd9
mov edx, dword [esp + 0x54]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x41dddb
xor eax, eax
mov dword [esp + 0x78], eax
test ebx, ebx
mov byte [esp + 0x84], 4
jne 0x41ddef
xor eax, eax
jmp 0x41ddf2
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
push 0xcc0020
mov edx, dword [esp + 0x58]
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x20], eax
add eax, 0x33
cmp eax, 7
mov dword [esp + 0x8c], eax
jle 0x41df27
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x2c]
lea edx, [edx + ecx - 0x2c]
mov dword [esp + 0x18], edx
jmp 0x41de67
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
add ecx, 0xffffffd4
push ecx
mov ecx, dword [esp + 0x90]
push 0
push 0x2c
push 7
push eax
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0xa0], eax
jge 0x41df0d
jmp 0x41deb8
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x14]
push 0x16
add ecx, 0xffffffe6
mov edx, dword [esi]
push ecx
push 0x2c
push 7
push eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xac]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esp + 0xa0]
add eax, 0x16
cmp eax, edi
mov dword [esp + 0xa0], eax
jl 0x41deb1
mov eax, dword [esp + 0x8c]
sub eax, 0x2c
cmp eax, 7
mov dword [esp + 0x8c], eax
jg 0x41de60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x14], eax
push 0xcc0020
lea ecx, [eax - 0x2c]
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [esp + 0x9c]
push 0
push eax
mov eax, dword [ebx + 4]
push ecx
push 0x33
push edx
push ebp
push eax
mov dword [esp + 0xb0], ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x8c]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x98]
push 0
push 0x33
push 0
push eax
push ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
sub eax, edx
push 0xcc0020
lea ecx, [eax + ecx - 0x2c]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x30]
push ecx
push ebp
mov dword [esp + 0x24], ecx
lea edx, [eax + edx + 0x2c]
lea eax, [esp + 0x5c]
neg eax
sbb eax, eax
and eax, dword [esp + 0x60]
push eax
push edx
mov edx, dword [ebx + 4]
push 0x33
push ecx
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0xa0], eax
jge 0x41e054
jmp 0x41e006
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x14]
push 0x16
add ecx, 0xffffffe6
mov edx, dword [esi]
push ecx
push 0x33
push 0
push eax
push ebp
mov ecx, dword [esp + 0xac]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edi
mov eax, dword [ebx + 4]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xa0]
add eax, 0x16
cmp eax, edi
mov dword [esp + 0xa0], eax
jl 0x41dfff
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x50]
add ecx, 0x32
add edx, 0xffffffcd
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x5c]
push ecx
mov dword [esp + 0x24], ecx
push eax
mov eax, dword [esp + 0x9c]
push eax
push edx
push 0
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x28]
push eax
push 0
lea eax, [ecx - 0x33]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x24]
push 0x33
push 0
push eax
mov eax, dword [esp + 0xac]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x10]
push 0xcc0020
lea ecx, [edx + eax + 0x2c]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0xa0]
add eax, 0xffffffcd
push eax
push ecx
push edx
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x8c]
lea ecx, [edi + 0x2c]
cmp eax, ecx
mov dword [esp + 0xa0], eax
jge 0x41e1c2
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0x16
sub ecx, edx
mov edx, dword [esp + 0x2c]
lea ecx, [ecx + edx - 0x2c]
mov dword [esp + 0xa4], ecx
jmp 0x41e167
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
push 0x16
push ecx
mov ecx, dword [esp + 0x30]
add ecx, 0xffffffcd
mov edx, dword [esi]
push ecx
push 0x33
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0xac]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esp + 0xa0]
lea ecx, [edi + 0x2c]
add eax, 0x16
cmp eax, ecx
mov dword [esp + 0xa0], eax
jl 0x41e160
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x98]
mov edx, edi
push 0xcc0020
sub edx, ecx
lea ecx, [edx - 1]
lea edx, [eax - 7]
lea eax, [esp + 0x54]
push ecx
neg eax
sbb eax, eax
push 7
and eax, dword [esp + 0x60]
mov dword [esp + 0xb0], ecx
push eax
mov eax, dword [esp + 0x20]
push eax
push edx
push ecx
mov ecx, dword [ebx + 4]
push 7
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x8c], 7
cmp ecx, 7
jle 0x41e280
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x94]
push 0x2c
push 7
push eax
push ecx
mov ecx, dword [esp + 0xac]
sub esp, 0x10
mov eax, esp
mov edx, dword [esi]
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edi
mov eax, dword [ebx + 4]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x98]
add eax, 0x2c
cmp eax, ecx
mov dword [esp + 0x8c], eax
jl 0x41e21d
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [esp + 0xa8]
push edx
lea edx, [ecx - 8]
push edx
mov edx, dword [esp + 0xb0]
push eax
mov eax, dword [esp + 0x20]
dec eax
add ecx, 0xfffffff9
push eax
mov eax, dword [ebx + 4]
push 7
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xac]
add eax, 0xfffffff9
push 7
push eax
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff8
push ecx
push eax
mov eax, dword [esp + 0xac]
sub esp, 0x10
mov edx, dword [esi]
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0x50]
push 0xcc0020
neg eax
sbb eax, eax
push ecx
and eax, edx
mov edx, dword [esp + 0x18]
push ebp
push eax
mov eax, dword [ebx + 4]
push edx
push 0x33
push ecx
push ebp
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xa8]
push ecx
push 0x33
push 0
push eax
push ebp
mov eax, dword [esp + 0xac]
mov edx, dword [esi]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebx + 4]
push ecx
mov ecx, esi
call dword [edx + 0x14]
mov dword [esp + 0x50], 0x461ba8
mov eax, dword [esp + 0x78]
mov byte [esp + 0x84], 5
test eax, eax
je 0x41e3a2
mov edx, dword [esp + 0x54]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CDC::DeleteDC
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], 0
call sub.MFC42u.DLL_CDC::CDC
mov dword [esp + 0x30], 0x460bf4
mov dword [esp + 0x84], 6
jmp 0x41e3e4
mov dword [esp + 0x30], 0x460bf4
mov dword [esp + 0x84], 2
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret