Function at 0x10018030
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov dword [ebp - 0xc], 0xfffffffa
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0x1388
push 0x1002a054
call fcn.10016ef9
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018077
xor eax, eax
je 0x1001806f
jmp 0x10018069
or eax, 0xffffffff
jmp 0x100182ef
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor ecx, ecx
je 0x1001808b
jmp 0x10018085
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x10028b0c]
push eax
call fcn.10017e60
add esp, 8
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x10028b10]
push edx
call fcn.10017e60
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jne 0x100180d3
xor ecx, ecx
je 0x100180c7
jmp 0x100180c1
mov dword [ebp - 0xc], 0xfffffff6
jmp 0x10018178
mov edx, dword [ebp - 8]
add edx, 1
push edx
call fcn.10014580
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10018114
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.100145b0
add esp, 8
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.100145b0
add esp, 8
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x10018178
cmp dword [ebp - 0x14], 0
je 0x1001812e
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10014290
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x1001814b
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
push eax
call fcn.10014290
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.100145b0
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.100145b0
add esp, 8
xor edx, edx
je 0x10018171
jmp 0x1001816b
mov dword [ebp - 0xc], 0
xor eax, eax
je 0x1001817e
jmp 0x10018178
cmp dword [ebp - 0xc], 0
jne 0x100182ae
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
xor ecx, ecx
je 0x1001819c
jmp 0x10018196
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1001bf8a
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x100182a8
xor edx, edx
je 0x100181c3
jmp 0x100181bd
push 0xd
push 0x10029c04
lea eax, [ebp - 0x140]
push eax
call fcn.100148c4
add esp, 0xc
mov byte [ebp - 0x134], 0x2e
lea ecx, [ebp - 0x15c]
push ecx
push 0xd
lea edx, [ebp - 0x140]
push edx
call fcn.1001c5c8
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push 0x14
lea ecx, [ebp - 0x15c]
push ecx
call fcn.1001c18b
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.1001c1fd
add esp, 0xc
xor edx, edx
je 0x1001822d
jmp 0x10018227
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.10019107
add esp, 8
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x10018289
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.100191d9
add esp, 0xc
mov ecx, dword [ebp - 0x144]
push ecx
call dword [0x1002a22c]
mov edx, dword [0x10028b0c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x10028b10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10018296
xor ecx, ecx
je 0x1001828f
jmp 0x10018289
mov dword [ebp - 0xc], 0xfffffffc
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.100145b0
add esp, 8
jmp 0x100182ae
xor ecx, ecx
je 0x100182ae
jmp 0x100182a8
cmp dword [ebp - 0xc], 0xfffffffc
jge 0x100182c6
xor edx, edx
je 0x100182ba
jmp 0x100182b4
mov eax, dword [0x10028b0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.10016ee4
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [0x1002a22c]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.100145b0
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret