Function at 0x101e656
Capabilities:
Delete file

Disassembly:
push 0x4c
mov eax, 0x10a1801
call fcn.01004677
xor edi, edi
mov ecx, 0x10aa2f8
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.0101db59
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0101de5a
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
je 0x1050452
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x1050467
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 0x101e6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x10504d3
jl 0x10504e4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.0101eab1
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x10504f4
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x1050504
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
je 0x101e794
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 0x1050518
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x101e810
cmp ebx, edi
je 0x101e81d
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.0101ec67
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
call edi
cmp dword [ebp + 8], 0
mov dword [esi + 4], eax
je 0x101e825
push 0x5a
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
call fcn.0101fef4
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 0x105052c
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 0x1050540
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 0x105058f
mov eax, dword [ebp + 0xc]
call fcn.01003910
ret 0x20
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax + 4]
jmp 0x101e788
push 0x60
pop eax
jmp 0x101e749
push 0x60
pop eax
jmp 0x101e779
mov dword [ebp - 0x30], 0x80070057
push 0x10a4348
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.0101f767
cmp eax, edi
jge 0x105048f
mov dword [ebp - 0x34], eax
push 0x10a4348
lea eax, [ebp - 0x34]
jmp 0x1050461
push edi
push dword [ebp - 0x18]
call fcn.01078c96
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10504b0
mov dword [ebp - 0x38], 0x80070057
push 0x10a4348
lea eax, [ebp - 0x38]
jmp 0x1050461
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
je 0x10504cb
mov dword [ebp - 0x3c], 0x80070057
push 0x10a4348
lea eax, [ebp - 0x3c]
jmp 0x1050461
mov esi, dword [ebp - 0x14]
jmp 0x101e6a7
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jmp 0x101e6ca
mov dword [ebp - 0x40], eax
push 0x10a4348
lea eax, [ebp - 0x40]
jmp 0x1050461
mov dword [ebp - 0x44], eax
push 0x10a4348
lea eax, [ebp - 0x44]
jmp 0x1050461
mov dword [ebp - 0x48], 0x80004005
push 0x10a4348
lea eax, [ebp - 0x48]
jmp 0x1050461
mov dword [ebp - 0x4c], 0x80004005
push 0x10a4348
lea eax, [ebp - 0x4c]
jmp 0x1050461
mov dword [ebp - 0x50], 0x8007000e
push 0x10a4348
lea eax, [ebp - 0x50]
jmp 0x1050461
mov dword [ebp - 0x54], 0x8007000e
push 0x10a4348
lea eax, [ebp - 0x54]
jmp 0x1050461
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x18]
call fcn.01008072
pop ecx
jmp 0x101e805