Function at 0x101e4fa
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call fcn.0101a106
mov esi, eax
xor eax, eax
and dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
test ebx, ebx
je 0x101e7bf
cmp dword [ebp + 0xc], eax
je 0x101e7bf
cmp dword [ebp + 0x10], 0xffffffff
je 0x101e7bf
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x101e7bf
lea ecx, [ebp - 0xc]
push ecx
push 1
lea eax, [edi + 0x28]
push eax
push ebx
call fcn.0101a106
push eax
call fcn.0101d093
xor ecx, ecx
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x101e58d
cmp dword [ebp - 0xc], esi
jne 0x101e574
inc dword [eax + 0x24]
cmp dword [ebp + 0x20], ecx
je 0x101e585
push dword [edi + 0x1c]
push dword [edi + 0x18]
push ebx
call fcn.0101a384
xor eax, eax
inc eax
jmp 0x101e7c9
push ecx
push ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.01019cd7
test eax, eax
je 0x101e7c7
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.01019fd0
test eax, eax
je 0x101e7c7
cmp dword [ebp + 0x1c], 2
mov eax, dword [esi + 0x1d8]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x1dc]
mov dword [edi + 0x14], eax
je 0x101e5ec
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
push 1
push edi
call fcn.01021e70
mov dword [ebp + 8], eax
test eax, eax
je 0x101e6a9
and dword [ebp - 0x40], 0
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], ecx
call fcn.01019c9c
test eax, eax
je 0x101e68b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x101e68b
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x101e68b
or dword [esi + 0x190], 2
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x1d8]
xor edx, edx
inc edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x1dc]
or dword [ebx + 0x24], edx
cmp dword [ebp - 8], 0
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
je 0x101e6b1
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.0101ce45
mov dword [ebp - 4], eax
test eax, eax
jne 0x101e6b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 8], 0
je 0x101e6a9
cmp edi, dword [ebp + 8]
je 0x101e6a9
push dword [ebp + 8]
lea eax, [esi + 0xc]
push eax
add esi, 8
push esi
call fcn.01021c9e
mov eax, dword [ebp - 4]
jmp 0x101e7c9
mov eax, dword [ebp + 8]
push eax
add eax, 0x28
push eax
push esi
call fcn.01019894
push eax
call fcn.0102027d
test eax, eax
jne 0x101e6cc
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 0x18]
je 0x101e68e
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp - 0x14]
jl 0x101e701
jg 0x101e6e7
mov eax, dword [edi + 0x18]
cmp eax, dword [ebp - 0x18]
jbe 0x101e701
cmp dword [ebp + 0x20], 0
je 0x101e701
mov eax, dword [edi + 0x18]
sub eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x1c]
sbb ecx, dword [ebp - 0x14]
push ecx
push eax
push ebx
call fcn.0101a384
mov eax, dword [ebp - 0x18]
add dword [esi + 0x1d8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
adc dword [esi + 0x1dc], eax
cmp dword [ebp + 0x1c], 2
je 0x101e7b0
test byte [ebx + 0x1c], 2
je 0x101e7b0
or dword [ebp + 0x18], 0xffffffff
and dword [ebp - 4], 0
push ebx
call fcn.0101a106
push eax
call fcn.0101fcf0
mov ecx, eax
xor eax, eax
mov dword [ebp + 0x10], ecx
cmp ecx, eax
je 0x101e68e
cmp word [ecx], ax
je 0x101e795
push eax
lea edx, [ebp + 0x18]
push edx
push eax
push ecx
lea eax, [edi + 0x28]
push eax
push ebx
call fcn.0101e358
test eax, eax
je 0x101e795
cmp dword [ebp + 0x18], 0xffffffff
je 0x101e795
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call fcn.010151fb
test eax, eax
je 0x101e786
mov dword [ebp - 4], 1
jmp 0x101e78c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jne 0x101e6a9
jmp 0x101e68e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c