Function at 0x105f2b7
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.01055bad
cmp dword [esi + 0x38], 2
mov dword [esi + 0x48], ebx
je 0x105f30b
push 0x100c3cc
push 2
call fcn.01055c50
jmp 0x105f7bb
mov eax, dword [esi + 0x50]
mov dword [esi + 0x38], 3
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x105f318
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 0x105f34b
push 0x100c3a0
push 2
mov edi, 0x8007000e
call fcn.01055c50
jmp 0x105f79b
push dword [esi + 0x50]
push edi
push eax
call fcn.01045c74
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 0x105f3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f3c0
push 0x57
pop eax
cmp eax, ebx
jle 0x105f3cc
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c378
push 2
call fcn.01055c8a
add esp, 0xc
jmp 0x105f79b
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 0x105f42a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f414
push 0x57
pop eax
cmp eax, ebx
jle 0x105f420
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c34c
jmp 0x105f3d4
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 0x105f47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f463
push 0x57
pop eax
cmp eax, ebx
jle 0x105f46f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c31c
jmp 0x105f3d4
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x100c2f0
push 4
call fcn.01055bad
push ebx
push ebx
push ebx
push ebx
push edi
call dword [esi + 0x244]
test eax, eax
je 0x105f539
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 0x105f5a7
push dword [ebp - 0x32c]
call fcn.0105e5f4
mov edi, eax
cmp edi, ebx
jge 0x105f5db
push edi
push 0x100c2bc
push 2
call fcn.01055c8a
add esp, 0xc
cmp dword [ebp - 0x32c], 0x197
jne 0x105f5cd
push ebx
push 7
push 0x2eee
push dword [ebp - 0x310]
push dword [esi + 0x128c]
call dword [esi + 0x23c]
cmp eax, 0x2f00
jne 0x105f5cd
mov edi, dword [ebp - 0x310]
jmp 0x105f494
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105f548
push 0x57
pop eax
cmp eax, ebx
jle 0x105f554
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.01055c8a
add esp, 0xc
mov edi, 0x80072efd
jmp 0x105f79b
push dword [ebp - 0x314]
mov edi, 0x8007000d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x100c254
push 2
call fcn.01055c8a
add esp, 0xc
jmp 0x105f799
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x105f59d
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 3
je 0x105f643
call dword [sym.imp.KERNEL32.dll_GetLastError]
invalid