Function at 0x100a7fc0
Capabilities:
Delete file
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3242c
call fcn.101b5a00
mov eax, dword [0x10285124]
xor eax, esp
mov dword [esp + 0x32428], eax
mov eax, dword [0x102a7fc4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test dword [ebp + 8], eax
je 0x100a828e
push 0x19000
lea eax, [esp + 0x19434]
push 0
push eax
call fcn.101b7960
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x18]
lea eax, [esp + 0x1943c]
push 0x19000
push 0xc800
push eax
call fcn.100a82d0
push 0x19000
lea eax, [esp + 0x44c]
push 0
push eax
call fcn.101b7960
add esp, 0x24
test dword [0x102a7fc4], 0x10000
je 0x100a8252
push 0x208
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.101b7960
add esp, 0xc
lea eax, [esp + 0x20]
push 0x208
push 0
push eax
call fcn.101b7960
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x16]
push eax
push 0x102a6a40
push str._sLog__02d.log
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.100a8350
add esp, 0x14
lea eax, [esp + 0x19430]
push eax
push dword [ebp + 0x14]
movzx eax, word [esp + 0x26]
push dword [ebp + 0x10]
push esi
push 0x102a6c48
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push eax
lea eax, [esp + 0x460]
push str.__04d__02d__02d__02d:_02d:_02d._03d___s_s___d___d___s_r_n
push eax
call fcn.100a82b0
add esp, 0x38
cmp dword [0x1028e130], 0
je 0x100a8192
push 0x10245020
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.101c2fcf
add esp, 0xc
test eax, eax
jne 0x100a8188
push 2
push eax
push dword [esp + 0x14]
call fcn.101c32fa
add esp, 0xc
push dword [esp + 0xc]
call fcn.101c3996
add esp, 4
mov esi, eax
push dword [esp + 0xc]
call fcn.101c3a18
add esp, 4
cmp esi, 0x300000
jl 0x100a8188
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x228]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop dword [eax]
test eax, eax
jne 0x100a8188
push 0x32
call ebx
lea eax, [esp + 0x228]
push eax
call edi
inc esi
cmp esi, 3
jl 0x100a8170
mov dword [0x1028e130], 0
push 0x10245028
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.101c2fcf
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x43c]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
mov esi, eax
xor edx, edx
mov ecx, esi
add ecx, 1
push 1
setb dl
neg edx
or edx, ecx
push edx
call fcn.101c2e49
add esp, 8
mov ebx, eax
lea eax, [esp + 0x430]
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
mov edx, dword [esp + 0xc]
test edx, edx
je 0x100a828e
test ebx, ebx
je 0x100a828e
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a8213
push edx
sub ecx, esi
push ecx
push 1
push ebx
call fcn.101c3cab
push dword [esp + 0x1c]
call fcn.101c3a18
add esp, 0x14
push ebx
call fcn.101bacd3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x32428]
xor ecx, esp
call fcn.101b451c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x19430]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x438]
push dword [ebp + 0x10]
push esi
push 0x102a6c48
push str.__s_s___d___d___s_r_n
push 0xc800
push eax
call fcn.100a8350
add esp, 0x20
lea eax, [esp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x32434]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b451c
mov esp, ebp
pop ebp
ret