Function at 0x1061a84
Capabilities:
Check for time delay via gettickcount
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x20]
push eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x100ce30
push 5
call fcn.0105e573
cmp dword [esi + 0x38], 2
mov dword [esi + 0x48], ebx
je 0x1061ad8
push 0x100cdf4
push 2
call fcn.0105e573
jmp 0x1061f88
mov eax, dword [esi + 0x50]
mov dword [esi + 0x38], 3
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1061ae5
sub eax, edi
lea edi, [eax + 1]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x31c], eax
jne 0x1061b18
push 0x100cdc8
push 2
mov edi, 0x8007000e
call fcn.0105e573
jmp 0x1061f68
push dword [esi + 0x50]
push edi
push eax
call fcn.010460e1
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x368]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
mov dword [ebp - 0x358], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x368]
push eax
push ebx
push ebx
push dword [ebp - 0x31c]
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x368], edi
mov dword [ebp - 0x33c], ecx
call dword [esi + 0x22c]
test eax, eax
jne 0x1061bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1061b8d
push 0x57
pop eax
cmp eax, ebx
jle 0x1061b99
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100cda0
push 2
call fcn.0105e5ad
add esp, 0xc
jmp 0x1061f68
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x350]
push dword [ebp - 0x358]
push dword [esi + 0x70]
call dword [esi + 0x230]
cmp eax, ebx
mov dword [esi + 0x74], eax
jne 0x1061bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1061be1
push 0x57
pop eax
cmp eax, ebx
jle 0x1061bed
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100cd74
jmp 0x1061ba1
push ebx
push 0x4400200
push ebx
push ebx
push ebx
push dword [ebp - 0x33c]
push 0x100cd70
push eax
call dword [esi + 0x240]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x310], edi
mov dword [esi + 0x78], edi
jne 0x1061c49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1061c30
push 0x57
pop eax
cmp eax, ebx
jle 0x1061c3c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100cd44
jmp 0x1061ba1
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x100cd18
push 5
call fcn.0105e573
push ebx
push ebx
push ebx
push ebx
push edi
call dword [esi + 0x244]
test eax, eax
je 0x1061d06
push ebx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x32c]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x320], 4
call dword [esi + 0x248]
test eax, eax
je 0x1061d74
push dword [ebp - 0x32c]
call fcn.01060dda
mov edi, eax
cmp edi, ebx
jge 0x1061da8
push edi
push 0x100cce4
push 2
call fcn.0105e5ad
add esp, 0xc
cmp dword [ebp - 0x32c], 0x197
jne 0x1061d9a
push ebx
push 7
push 0x2eee
push dword [ebp - 0x310]
push dword [esi + 0x128c]
call dword [esi + 0x23c]
cmp eax, 0x2f00
jne 0x1061d9a
mov edi, dword [ebp - 0x310]
jmp 0x1061c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1061d15
push 0x57
pop eax
cmp eax, ebx
jle 0x1061d21
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x314]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x328]
push eax
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x310], 0x100
call dword [esi + 0x24c]
push edi
push 0x100ccb4
push 2
call fcn.0105e5ad
add esp, 0xc
mov edi, 0x80072efd
jmp 0x1061f68
push dword [ebp - 0x314]
mov edi, 0x8007000d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x100cc7c
push 2
call fcn.0105e5ad
add esp, 0xc
jmp 0x1061f66
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x1061d6a
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 3
je 0x1061e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1061dc9
push 0x57
pop eax
cmp eax, ebx
jle 0x1061dd5
and eax, 0xffff
or eax, 0x80070000
push dword [esi + 0x74]
lea edi, [esi + 0x238]
mov dword [ebp - 0x310], eax
call dword [edi]
push dword [esi + 0x78]
mov dword [esi + 0x74], ebx
call dword [edi]
push dword [ebp - 0x310]
mov dword [esi + 0x78], ebx
push 0x100cc54
push 2
call fcn.0105e5ad
add esp, 0xc
mov edi, 0x80004004
jmp 0x1061f68
push 4
pop ebx
push dword [ebp - 0x314]
mov dword [esi + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], ebx
lea ebx, [esi + 0x40]
push ebx
push 0x20000005
push dword [ebp - 0x310]
call dword [esi + 0x248]
test eax, eax
jne 0x1061e5b
push 0x100cc24
push 4
call fcn.0105e5ad
or dword [ebx], 0xffffffff
pop ecx
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x318], 0
and dword [ebp - 0x324], 0
call ebx
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x328], eax
push ecx
jmp 0x1061ee1
cmp dword [ebp - 0x318], 0
je 0x1061f4f
push 0
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x318]
lea eax, [esi + 0x278]
push eax
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1061f22
mov eax, dword [ebp - 0x318]
add dword [esi + 0x44], eax
call ebx
sub eax, dword [ebp - 0x328]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, eax
test ecx, ecx
jbe 0x1061eda
mov eax, dword [esi + 0x44]
xor edx, edx
div ecx
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x318]
push eax
push 0x1000
lea eax, [esi + 0x278]
push eax
push dword [ebp - 0x310]
call dword [esi + 0x234]
test eax, eax
jne 0x1061e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1061f0c
push 0x57
pop eax
test eax, eax
jle 0x1061f18
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100cbf0
jmp 0x1061f45
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1061f31
push 0x57
pop eax
test eax, eax
jle 0x1061f3d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100cbc4
push 2
call fcn.0105e5ad
add esp, 0xc
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 4
je 0x1061f66
mov edi, 0x80004004
xor ebx, ebx
cmp dword [ebp - 0x31c], ebx
je 0x1061f7c
push dword [ebp - 0x31c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp edi, 0x80004004
je 0x1062044
push 0x100cbac
push 4
call fcn.0105e573
xor eax, eax
cmp edi, ebx
setge al
mov dword [esi + 0x3c], edi
lea eax, [eax*4 + 1]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x7c]
cmp eax, 0xffffffff
je 0x1061fbb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x7c], 0xffffffff
cmp edi, ebx
jge 0x1061fcf
cmp dword [esi + 0x60], ebx
je 0x1061fcf
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1061fd2
mov dword [esi + 0x60], ebx
lea eax, [esi + 0x274]
mov edi, dword [eax]
cmp edi, ebx
mov dword [eax], ebx
je 0x106200d
mov eax, dword [esi + 0x4c]
push dword [ebp - 0x314]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x324]
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 5
je 0x1062044
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x1062029
push 0x2f
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
jne 0x106202e
mov eax, 0x100cba4
push dword [esi + 0x40]
push dword [esi + 0x44]
push eax
push 0x100cb70
push 4
call fcn.0105e5ad
add esp, 0x14
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret