Function at 0x103e60c
Capabilities:
Delete file

Disassembly:
push 0x4c
mov eax, 0x10a0ed5
call fcn.01003919
xor edi, edi
mov ecx, 0x10aa2f0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
call fcn.0103c3f5
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0103c8aa
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
je 0x104fbba
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x104fbcf
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 8], ebx
cmp dword [eax], edi
jne 0x103e686
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x104fc3b
jl 0x104fc4c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.0103d325
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x104fc5c
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x104fc6c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
je 0x103e74a
mov dword [esi], 8
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x104fc80
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x103eb01
cmp ebx, edi
je 0x103eb0e
push 0x58
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x14]
push eax
mov ebx, 0x9ec
push ebx
call fcn.0103d4db
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
call edi
cmp dword [ebp + 8], 0
mov dword [esi + 4], eax
je 0x103eb16
push 0x5a
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
call fcn.0103e7cb
push eax
call edi
xor edi, edi
push dword [ebp - 0x1c]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x14
call sub.MFC42u.dll_operatornew
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
cmp esi, edi
je 0x104fc94
push 3
pop eax
mov word [esi], ax
push 0x20
mov dword [esi + 4], edi
or dword [esi + 0xc], 0xffffffff
pop ebx
push 0xc
mov dword [esi + 0x10], ebx
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x104fca8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 8], edi
mov dword [ecx], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
cmp dword [ebp - 0x18], edi
jne 0x104fcf7
mov eax, dword [ebp + 0xc]
call fcn.01003900
ret 0x20
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax + 4]
jmp 0x103e73e
push 0x60
pop eax
jmp 0x103e6ff
push 0x60
pop eax
jmp 0x103e72f
mov dword [ebp - 0x30], 0x80070057
push 0x10a39e4
lea eax, [ebp - 0x30]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
call fcn.0103df1d
cmp eax, edi
jge 0x104fbf7
mov dword [ebp - 0x34], eax
push 0x10a39e4
lea eax, [ebp - 0x34]
jmp 0x104fbc9
push edi
push dword [ebp - 0x18]
call fcn.01078106
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x104fc18
mov dword [ebp - 0x38], 0x80070057
push 0x10a39e4
lea eax, [ebp - 0x38]
jmp 0x104fbc9
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
je 0x104fc33
mov dword [ebp - 0x3c], 0x80070057
push 0x10a39e4
lea eax, [ebp - 0x3c]
jmp 0x104fbc9
mov esi, dword [ebp - 0x14]
jmp 0x103e65d
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jmp 0x103e680
mov dword [ebp - 0x40], eax
push 0x10a39e4
lea eax, [ebp - 0x40]
jmp 0x104fbc9
mov dword [ebp - 0x44], eax
push 0x10a39e4
lea eax, [ebp - 0x44]
jmp 0x104fbc9
mov dword [ebp - 0x48], 0x80004005
push 0x10a39e4
lea eax, [ebp - 0x48]
jmp 0x104fbc9
mov dword [ebp - 0x4c], 0x80004005
push 0x10a39e4
lea eax, [ebp - 0x4c]
jmp 0x104fbc9
mov dword [ebp - 0x50], 0x8007000e
push 0x10a39e4
lea eax, [ebp - 0x50]
jmp 0x104fbc9
mov dword [ebp - 0x54], 0x8007000e
push 0x10a39e4
lea eax, [ebp - 0x54]
jmp 0x104fbc9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x18]
call fcn.0100b7da
pop ecx
jmp 0x103e7bb