Function at 0x105f296
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 [0x1072c48]
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 0x100c408
push 4
call fcn.01055b8c
cmp dword [esi + 0x38], 2
mov dword [esi + 0x48], ebx
je 0x105f2ea
push 0x100c3cc
push 2
call fcn.01055c2f
jmp 0x105f79a
mov eax, dword [esi + 0x50]
mov dword [esi + 0x38], 3
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x105f2f7
sub eax, edi
lea edi, [eax + 1]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x31c], eax
cmp eax, ebx
jne 0x105f32a
push 0x100c3a0
push 2
mov edi, 0x8007000e
call fcn.01055c2f
jmp 0x105f77a
push dword [esi + 0x50]
push edi
push eax
call fcn.01045c57
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 0x105f3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f39f
push 0x57
pop eax
cmp eax, ebx
jle 0x105f3ab
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c378
push 2
call fcn.01055c69
add esp, 0xc
jmp 0x105f77a
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]
mov dword [esi + 0x74], eax
cmp eax, ebx
jne 0x105f409
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f3f3
push 0x57
pop eax
cmp eax, ebx
jle 0x105f3ff
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c34c
jmp 0x105f3b3
push ebx
push 0x4400200
push ebx
push ebx
push ebx
push dword [ebp - 0x33c]
push 0x100c348
push eax
call dword [esi + 0x240]
mov edi, eax
mov dword [ebp - 0x310], edi
mov dword [esi + 0x78], edi
cmp edi, ebx
jne 0x105f45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f442
push 0x57
pop eax
cmp eax, ebx
jle 0x105f44e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c31c
jmp 0x105f3b3
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x100c2f0
push 4
call fcn.01055b8c
push ebx
push ebx
push ebx
push ebx
push edi
call dword [esi + 0x244]
test eax, eax
je 0x105f518
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 0x105f586
push dword [ebp - 0x32c]
call fcn.0105e5d3
mov edi, eax
cmp edi, ebx
jge 0x105f5ba
push edi
push 0x100c2bc
push 2
call fcn.01055c69
add esp, 0xc
cmp dword [ebp - 0x32c], 0x197
jne 0x105f5ac
push ebx
push 7
push 0x2eee
push dword [ebp - 0x310]
push dword [esi + 0x128c]
call dword [esi + 0x23c]
cmp eax, 0x2f00
jne 0x105f5ac
mov edi, dword [ebp - 0x310]
jmp 0x105f473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f527
push 0x57
pop eax
cmp eax, ebx
jle 0x105f533
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 0x100c28c
push 2
call fcn.01055c69
add esp, 0xc
mov edi, 0x80072efd
jmp 0x105f77a
push dword [ebp - 0x314]
mov edi, 0x8007000d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x100c254
push 2
call fcn.01055c69
add esp, 0xc
jmp 0x105f778
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x105f57c
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 3
je 0x105f622
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f5db
push 0x57
pop eax
cmp eax, ebx
jle 0x105f5e7
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 0x100c22c
push 2
call fcn.01055c69
add esp, 0xc
mov edi, 0x80004004
jmp 0x105f77a
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 0x105f66d
push 0x100c1fc
push 4
call fcn.01055c69
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 0x105f6f3
cmp dword [ebp - 0x318], 0
je 0x105f761
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 0x105f734
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 0x105f6ec
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 0x105f692
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105f71e
push 0x57
pop eax
test eax, eax
jle 0x105f72a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c1c8
jmp 0x105f757
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105f743
push 0x57
pop eax
test eax, eax
jle 0x105f74f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c19c
push 2
call fcn.01055c69
add esp, 0xc
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 4
je 0x105f778
mov edi, 0x80004004
xor ebx, ebx
cmp dword [ebp - 0x31c], ebx
je 0x105f78e
push dword [ebp - 0x31c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp edi, 0x80004004
je 0x105f856
push 0x100c184
push 4
call fcn.01055b8c
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 0x105f7cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x7c], 0xffffffff
cmp edi, ebx
jge 0x105f7e1
cmp dword [esi + 0x60], ebx
je 0x105f7e1
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x105f7e4
mov dword [esi + 0x60], ebx
lea eax, [esi + 0x274]
mov edi, dword [eax]
mov dword [eax], ebx
cmp edi, ebx
je 0x105f81f
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 0x105f856
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x105f83b
push 0x2f
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
cmp eax, ebx
jne 0x105f840
mov eax, 0x100c17c
push dword [esi + 0x40]
push dword [esi + 0x44]
push eax
push 0x100c148
push 4
call fcn.01055c69
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.01047464
leave
ret