Function at 0x101e419
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.0101a025
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 0x101e6de
cmp dword [ebp + 0xc], eax
je 0x101e6de
cmp dword [ebp + 0x10], 0xffffffff
je 0x101e6de
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x101e6de
lea ecx, [ebp - 0xc]
push ecx
push 1
lea eax, [edi + 0x28]
push eax
push ebx
call fcn.0101a025
push eax
call fcn.0101cfb2
xor ecx, ecx
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x101e4ac
cmp dword [ebp - 0xc], esi
jne 0x101e493
inc dword [eax + 0x24]
cmp dword [ebp + 0x20], ecx
je 0x101e4a4
push dword [edi + 0x1c]
push dword [edi + 0x18]
push ebx
call fcn.0101a2a3
xor eax, eax
inc eax
jmp 0x101e6e8
push ecx
push ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.01019bf6
test eax, eax
je 0x101e6e6
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.01019eef
test eax, eax
je 0x101e6e6
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 0x101e50b
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
push 1
push edi
call fcn.01021d8f
mov dword [ebp + 8], eax
test eax, eax
je 0x101e5c8
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.01019bbb
test eax, eax
je 0x101e5aa
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x101e5aa
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x101e5aa
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 0x101e5d0
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.0101cd64
mov dword [ebp - 4], eax
test eax, eax
jne 0x101e5d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 8], 0
je 0x101e5c8
cmp edi, dword [ebp + 8]
je 0x101e5c8
push dword [ebp + 8]
lea eax, [esi + 0xc]
push eax
add esi, 8
push esi
call fcn.01021bbd
mov eax, dword [ebp - 4]
jmp 0x101e6e8
mov eax, dword [ebp + 8]
push eax
add eax, 0x28
push eax
push esi
call fcn.010197b3
push eax
call fcn.0102019c
test eax, eax
jne 0x101e5eb
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 0x18]
je 0x101e5ad
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp - 0x14]
jl 0x101e620
jg 0x101e606
mov eax, dword [edi + 0x18]
cmp eax, dword [ebp - 0x18]
jbe 0x101e620
cmp dword [ebp + 0x20], 0
je 0x101e620
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.0101a2a3
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 0x101e6cf
test byte [ebx + 0x1c], 2
je 0x101e6cf
or dword [ebp + 0x18], 0xffffffff
and dword [ebp - 4], 0
push ebx
call fcn.0101a025
push eax
call fcn.0101fc0f
mov ecx, eax
xor eax, eax
mov dword [ebp + 0x10], ecx
cmp ecx, eax
je 0x101e5ad
cmp word [ecx], ax
je 0x101e6b4
push eax
lea edx, [ebp + 0x18]
push edx
push eax
push ecx
lea eax, [edi + 0x28]
push eax
push ebx
call fcn.0101e277
test eax, eax
je 0x101e6b4
cmp dword [ebp + 0x18], 0xffffffff
je 0x101e6b4
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call fcn.0101511a
test eax, eax
je 0x101e6a5
mov dword [ebp - 4], 1
jmp 0x101e6ab
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 0x101e5c8
jmp 0x101e5ad
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c