Function at 0x100183a9
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c117
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
xor eax, eax
mov al, byte [0x1005e74d]
test eax, eax
jne 0x10018620
mov ecx, dword [str.logx.txt]
mov dword [ebp - 0x120], ecx
mov edx, dword [0x10057914]
mov dword [ebp - 0x11c], edx
mov al, byte [0x10057918]
mov byte [ebp - 0x118], al
mov byte [ebp - 0x11d], 0x32
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.1000fc06
add esp, 8
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x178]
call fcn.100040e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.100040a0
mov dword [ebp - 0x114], 1
jmp 0x1001846e
mov ecx, dword [ebp - 0x114]
sub ecx, 1
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
jl 0x10018554
mov edx, dword [ebp - 0x114]
add edx, 0x30
mov byte [ebp - 0x11d], dl
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.1000fc06
add esp, 8
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x180]
call fcn.100040e0
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.1003d990
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.100040a0
mov cl, byte [ebp - 0x11d]
add cl, 1
mov byte [ebp - 0x11d], cl
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x150]
push eax
call fcn.1000fc06
add esp, 8
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x188], ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x188]
call fcn.100040e0
push eax
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.100040a0
jmp 0x1001845f
push str.log_last.txt
lea eax, [ebp - 0x160]
push eax
call fcn.1000fc06
add esp, 8
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x190]
call fcn.100040e0
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.1003d990
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100040a0
push str.log0.txt
lea eax, [ebp - 0x170]
push eax
call fcn.1000fc06
add esp, 8
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x198]
call fcn.100040e0
push eax
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.100040a0
push 2
lea eax, [ebp - 0x110]
push eax
mov ecx, 0x1005e5a0
call fcn.1001e420
mov byte [0x1005e74d], 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
test ecx, ecx
je 0x1001866e
push 0x10005920
mov edx, dword [ebp + 8]
push edx
push str.BLOCKED:
push 0x1005e5a0
call fcn.10009870
add esp, 8
push eax
call fcn.10009870
add esp, 8
mov ecx, eax
call fcn.10004110
jmp 0x1001868b
push 0x10005920
mov eax, dword [ebp + 8]
push eax
push 0x1005e5a0
call fcn.10009870
add esp, 8
mov ecx, eax
call fcn.10004110
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret