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

Disassembly:
push 0xffffffffffffffff
push 0x421830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebp
push esi
push edi
mov edi, ecx
mov esi, 0x3c
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x380]
mov ebp, 1
test eax, eax
mov dword [esp + 0x10], esi
mov ecx, 0x48
je 0x407fb2
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x7c]
and eax, 0xff
cmp eax, 0x49
ja case.0x407fcc.14
xor edx, edx
mov dl, byte [eax + 0x408644]
jmp dword [edx*4 + 0x408608]
mov dword [esp + 0xc], esi
jmp 0x4080be
mov dword [esp + 0xc], 0x78
jmp 0x4080be
mov dword [esp + 0xc], pe_nt_image_headers32
jmp 0x4080be
mov dword [esp + 0xc], 0x50
jmp 0x4080be
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
jmp 0x4080be
mov dword [esp + 0xc], 0x5a
jmp 0x4080be
mov dword [esp + 0xc], 0x90
mov dword [esp + 0x10], ecx
jmp 0x4080be
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0xb4
mov ebp, 3
jmp 0x4080be
mov dword [esp + 0xc], 0x78
mov dword [esp + 0x10], 0xb4
mov ebp, 3
jmp 0x4080be
mov dword [esp + 0xc], 0x5a
mov dword [esp + 0x10], 0xb4
mov ebp, 3
jmp 0x4080be
mov eax, 0xb4
mov ebp, 3
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
jmp 0x4080be
mov dword [esp + 0xc], 0x168
mov dword [esp + 0x10], 0xb4
mov ebp, 3
jmp 0x4080be
mov dword [esp + 0xc], 0xb4
mov dword [esp + 0x10], 0x168
jmp 0x4080b9
mov eax, 0x168
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebp, 6
mov eax, dword [edi + 0x530]
add edi, 0x530
push ebx
lea ecx, [esp + 0x38]
push 1
push ecx
mov ecx, edi
call dword [eax + 0x34]
mov edx, dword [edi]
lea eax, [esp + 0x34]
push 1
push eax
mov ecx, edi
call dword [edx + 0x34]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
and esi, 0xff
and ecx, 0xff
shl esi, 8
add esi, ecx
lea ebx, [ebp*8]
lea eax, [esi + 0xf]
and eax, 0xfff0
mov dword [esp + 0x28], eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x2c], eax
mov eax, esi
imul eax, ebp
push eax
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x38], eax
call dword [edx + 0x34]
mov edx, dword [esp + 0x28]
imul edx, ebp
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x20], eax
xor eax, eax
test ebx, ebx
mov dword [esp + 0x24], eax
jle 0x40823a
mov dword [esp + 0x18], eax
xor edi, edi
test esi, esi
jle 0x408218
mov ecx, eax
and ecx, 0x80000007
jns 0x408180
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
mov dword [esp + 0x3c], edx
cdq
and edx, 7
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x30]
sar ebx, 3
add ebx, eax
mov al, byte [ebx]
mov cl, byte [esp + 0x3c]
not al
test cl, al
je 0x4081c7
mov ecx, edi
and ecx, 0x80000007
jns 0x4081b7
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 0x80
sar eax, cl
mov byte [esp + 0x80], al
jmp 0x4081cf
mov byte [esp + 0x80], 0
mov eax, edi
mov ecx, edi
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 3
add eax, edx
mov edx, dword [esp + 0x20]
add eax, edx
and ecx, 0x80000007
jns 0x4081f5
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
add ebx, ebp
sar edx, cl
mov cl, byte [eax]
not dl
and dl, cl
mov cl, byte [esp + 0x80]
or dl, cl
inc edi
cmp edi, esi
mov byte [eax], dl
jl 0x40819c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
inc eax
lea ebx, [ebp*8]
add edx, ecx
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
jl 0x408167
xor edi, edi
mov dword [esp + 0x40], 0x4235f8
mov dword [esp + 0x44], edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], eax
lea edx, [esp + 0x58]
mov eax, 1
push edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x6c], ax
mov word [esp + 0x6e], ax
mov dword [esp + 0x70], ecx
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
push eax
lea ecx, [esp + 0x44]
call fcn.0041e55a
cmp eax, edi
jne 0x4082a2
mov ecx, dword [esp + 0x1c]
push str.cannot_create_bit_image
call fcn.00406a40
lea ecx, [esp + 0x48]
call fcn.0041df63
push edi
mov byte [esp + 0x7c], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.0041e01a
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
and eax, edi
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.0041e15b
mov edi, eax
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x2c], edi
je 0x4084d5
mov ecx, dword [0x42a49c]
mov dword [esp + 0x80], ecx
push 0
mov byte [esp + 0x7c], 2
call dword [sym.imp.GDI32.dll_CreateMetaFileA]
mov ebp, eax
test ebp, ebp
je 0x4084bf
mov eax, esi
mov ecx, dword [esp + 0x1c]
shl eax, 7
sub eax, esi
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x10]
mov edi, eax
mov eax, ebx
shl eax, 7
sub eax, ebx
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x14]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x618]
test eax, eax
je 0x408368
cdq
mov ecx, eax
mov eax, 0x51eb851f
xor ecx, edx
sub ecx, edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x408386
mov eax, dword [ecx + 0x614]
cdq
mov ecx, eax
mov eax, 0x51eb851f
xor ecx, edx
sub ecx, edx
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
mov dword [esp + 0x90], edx
cmp eax, 2
jg 0x40839f
mov dword [esp + 0x90], 3
push 8
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edx, dword [esp + 0x88]
push 0
push edx
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, dword [esp + 0x4c]
push 0xcc0020
push ebx
push esi
mov esi, dword [esp + 0x94]
push 0
push 0
push eax
push esi
push edi
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_StretchBlt]
push ebp
call dword [sym.imp.GDI32.dll_CloseMetaFile]
mov ecx, dword [esp + 0x90]
push esi
push edi
push ecx
lea edx, [esp + 0x8c]
mov ebp, eax
push str.dn_dpictpicw_dpich_dwmetafile8
push edx
mov dword [esp + 0x9c], ebp
call fcn.004175d6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x94]
add esp, 0x14
mov ecx, dword [eax - 8]
lea esi, [edx + 0x620]
push ecx
push eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push edi
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
xor ebp, ebp
test ebx, ebx
jbe 0x408491
xor eax, eax
lea ecx, [esp + 0x80]
mov al, byte [edi + ebp]
push eax
push str._02x
push ecx
call fcn.004175d6
mov eax, dword [esp + 0x8c]
mov edx, dword [esi]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x38]
inc ebp
cmp ebp, ebx
jb 0x40845e
push edi
call dword [sym.imp.KERNEL32.dll_LocalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
mov edx, dword [esi]
push 1
push 0x429b2c
mov ecx, esi
call dword [edx + 0x38]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 1
call fcn.00418a41
jmp 0x40857b
lea eax, [esi + esi*4]
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x88]
lea eax, [eax + eax*4]
shl eax, 2
cdq
fld dword [ebp]
idiv dword [esp + 0x10]
mov edi, eax
mov eax, ecx
neg eax
shl eax, 2
sub eax, ecx
mov dword [esp + 0x3c], edi
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x14]
mov dword [esp + 0x80], eax
call fcn.0040d650
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x90], eax
fld dword [esp + 0x8c]
lea eax, [esp + 0x48]
push 0x8800c6
fsub dword [0x423664]
neg eax
sbb eax, eax
push ebx
push esi
and eax, edx
push 0
push 0
push eax
mov eax, dword [esp + 0x98]
push eax
push edi
call fcn.0040d650
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xb0]
push eax
push ecx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
fild dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
fadd dword [ebp]
fstp dword [ebp]
test edi, edi
pop ebx
jne 0x408584
xor eax, eax
jmp 0x408587
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.0041e15b
lea ecx, [esp + 0x3c]
call fcn.0041e5b1
lea ecx, [esp + 0x44]
call fcn.0041e082
mov ecx, edi
call fcn.0041e5b1
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalHandle]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
mov eax, dword [esp + 0x1c]
push eax
call edi
push eax
call esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], 0
call fcn.0041e098
mov dword [esp + 0x3c], vtable.CGdiObject.0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], 3
call fcn.0041e5b1
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x14