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

Disassembly:
push 0xffffffffffffffff
push 0x440838
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4556d4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004147e1
lea ebx, [esi + 0x1ec]
push str.Black_Pic_Tmp.bmp
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ebp, eax
mov dword [esp + 0x3c], ebx
call fcn.00406ab0
mov eax, dword [eax]
add esp, 0xc
push 0x2010
xor esi, esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406651
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], vtable.CBitmap.0
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x8c], esi
call fcn.00414ac7
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x34]
call fcn.00414af3
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x40]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c417
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x40]
push 0
mov edx, 1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov word [esp + 0x64], dx
lea edx, [esp + 0x58]
push edx
mov ecx, eax
push esi
neg ecx
push eax
mov dword [esp + 0x6c], ecx
mov ecx, 0x20
push 0
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x78], 0
mov word [esp + 0x76], cx
mov eax, dword [ebp + 4]
push edi
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0x44]
mov edx, eax
imul edx, dword [esp + 0x40]
xor ecx, ecx
test edx, edx
jle 0x4067eb
fld qword [0x4495d0]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
inc ecx
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x1c], eax
mov eax, edx
shr eax, 8
fldcw word [esp + 0x1c]
and eax, 0xff
mov dword [esp + 0x1c], eax
movzx edx, dl
fistp qword [esp + 0x24]
mov ebx, dword [esp + 0x24]
fldcw word [esp + 0x14]
fild dword [esp + 0x1c]
fnstcw word [esp + 0x14]
fmul st(1)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
mov dword [esp + 0x1c], edx
movzx edx, bl
shl edx, 8
fistp qword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
movzx ebx, byte [esp + 0x24]
or edx, ebx
fldcw word [esp + 0x14]
shl edx, 8
fild dword [esp + 0x1c]
fnstcw word [esp + 0x14]
fmul st(1)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
movzx eax, al
or edx, eax
fldcw word [esp + 0x14]
mov dword [esi + ecx*4 - 4], edx
mov eax, dword [esp + 0x44]
mov edx, eax
imul edx, dword [esp + 0x40]
cmp ecx, edx
jl 0x406716
mov ebx, dword [esp + 0x30]
fstp st(0)
mov edx, dword [ebp + 4]
push 0
lea ecx, [esp + 0x58]
push ecx
push esi
push eax
push 0
push edi
push edx
call dword [sym.imp.GDI32.dll_SetDIBits]
push str.Black_Pic_Tmp.bmp
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00406ab0
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
call fcn.00404580
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40683d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0040c40c
add esp, 4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], vtable.CBitmap.0
call fcn.00401d30
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret