Function at 0x101e3c6
Capabilities:
Delete file

Disassembly:
push 0x4c
mov eax, 0x10a1895
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.0101d8c9
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0101dbca
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
je 0x105033a
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x105034f
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 0x101e440
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x10503bb
jl 0x10503cc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.0101e821
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x10503dc
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10503ec
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
je 0x101e504
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 0x1050400
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x101e580
cmp ebx, edi
je 0x101e58d
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.0101e9d7
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
call edi
cmp dword [ebp + 8], 0
mov dword [esi + 4], eax
je 0x101e595
push 0x5a
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
call fcn.0101fc64
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 0x1050414
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 0x1050428
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 0x1050477
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 0x101e4f8
push 0x60
pop eax
jmp 0x101e4b9
push 0x60
pop eax
jmp 0x101e4e9
mov dword [ebp - 0x30], 0x80070057
push 0x10a4448
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.0101f4d7
cmp eax, edi
jge 0x1050377
mov dword [ebp - 0x34], eax
push 0x10a4448
lea eax, [ebp - 0x34]
jmp 0x1050349
push edi
push dword [ebp - 0x18]
call fcn.01078cfe
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1050398
mov dword [ebp - 0x38], 0x80070057
push 0x10a4448
lea eax, [ebp - 0x38]
jmp 0x1050349
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
je 0x10503b3
mov dword [ebp - 0x3c], 0x80070057
push 0x10a4448
lea eax, [ebp - 0x3c]
jmp 0x1050349
mov esi, dword [ebp - 0x14]
jmp 0x101e417
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jmp 0x101e43a
mov dword [ebp - 0x40], eax
push 0x10a4448
lea eax, [ebp - 0x40]
jmp 0x1050349
mov dword [ebp - 0x44], eax
push 0x10a4448
lea eax, [ebp - 0x44]
jmp 0x1050349
mov dword [ebp - 0x48], 0x80004005
push 0x10a4448
lea eax, [ebp - 0x48]
jmp 0x1050349
mov dword [ebp - 0x4c], 0x80004005
push 0x10a4448
lea eax, [ebp - 0x4c]
jmp 0x1050349
mov dword [ebp - 0x50], 0x8007000e
push 0x10a4448
lea eax, [ebp - 0x50]
jmp 0x1050349
mov dword [ebp - 0x54], 0x8007000e
push 0x10a4448
lea eax, [ebp - 0x54]
jmp 0x1050349
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x18]
call fcn.01008062
pop ecx
jmp 0x101e575