Function at 0x1001858c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100653de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10018713
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x4c], 0x2674
cmp dword [ebp - 0x4c], 0x758
jge 0x100186a6
lea eax, [ebp - 0x20]
push eax
push 0x10007ad0
call fcn.1004d62b
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x50], 0
je 0x100186a6
and dword [ebp - 0x2c], 0
and dword [ebp - 0x34], 0
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x54]
push eax
push 0x10007ad0
call fcn.1004d62b
pop ecx
pop ecx
and dword [ebp - 0x24], 0
jmp 0x10018629
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x54]
jge 0x10018680
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10007ad4
call fcn.1004d62b
add esp, 0xc
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jge 0x10018652
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jge 0x1001865e
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
cmp eax, ecx
jge 0x10018672
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x10018622
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10018691
mov dword [ebp - 0x48], 0x10007c40
jmp 0x10018698
mov dword [ebp - 0x48], 0x10007c3c
push dword [ebp - 0x48]
call fcn.1004e532
pop ecx
jmp 0x100185e9
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x100186fa
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100186de
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
jge 0x100186f8
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x6c]
call fcn.10028a8b
and dword [eax], 0
jmp 0x100186d3
jmp 0x1001870e
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x1001870e
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10018863
mov dword [ebp - 0x70], 0x254c
cmp dword [ebp - 0x70], 0x1011
jge 0x1001884f
lea eax, [ebp - 0x78]
push eax
push 0x10007ad0
call fcn.1004d62b
pop ecx
pop ecx
lea eax, [ebp - 0x38]
push eax
push 0x10007ad0
call fcn.1004d62b
pop ecx
pop ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x74], 1
lea eax, [ebp - 0x74]
push eax
push 1
lea ecx, [ebp - 0x88]
call fcn.100289c3
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
jmp 0x1001877f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x78]
jge 0x100187cb
lea eax, [ebp - 0x3c]
push eax
push 0x10007ad0
call fcn.1004d62b
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
shl eax, 1
cmp eax, dword [ebp - 0x38]
jg 0x100187c9
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x88]
call fcn.10028ab1
jmp 0x10018778
mov eax, dword [ebp - 0x40]
shl eax, 1
cmp eax, dword [ebp - 0x44]
jle 0x10018835
lea ecx, [ebp - 0x88]
call fcn.10028a82
push eax
push 0x10007adc
call fcn.1004dfbc
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
jmp 0x100187fa
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x88]
call fcn.10028a82
cmp dword [ebp - 0x1c], eax
jae 0x10018828
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
call fcn.10028a8b
push dword [eax]
push 0x10007c6c
call fcn.1004dfbc
pop ecx
pop ecx
jmp 0x100187f3
push 0x10007a39
call fcn.1004e532
pop ecx
jmp 0x10018840
push 0x10007c74
call fcn.1004e532
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.10028a60
push 0x771d
push 0
push 0x67af
call fcn.10018574
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret