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]
cmp eax, ebx
jne 0x105f5fc
push 0x57
pop eax
cmp eax, ebx
jle 0x105f608
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.01055c8a
add esp, 0xc
mov edi, 0x80004004
jmp 0x105f79b
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 0x105f68e
push 0x100c1fc
push 4
call fcn.01055c8a
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 0x105f714
cmp dword [ebp - 0x318], 0
je 0x105f782
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 0x105f755
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 0x105f70d
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 0x105f6b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105f73f
push 0x57
pop eax
test eax, eax
jle 0x105f74b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c1c8
jmp 0x105f778
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105f764
push 0x57
pop eax
test eax, eax
jle 0x105f770
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x100c19c
push 2
call fcn.01055c8a
add esp, 0xc
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x38], 4
je 0x105f799
mov edi, 0x80004004
xor ebx, ebx
cmp dword [ebp - 0x31c], ebx
je 0x105f7af
push dword [ebp - 0x31c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp edi, 0x80004004
je 0x105f877
push 0x100c184
push 4
call fcn.01055bad
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 0x105f7ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x7c], 0xffffffff
cmp edi, ebx
jge 0x105f802
cmp dword [esi + 0x60], ebx
je 0x105f802
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x105f805
mov dword [esi + 0x60], ebx
lea eax, [esi + 0x274]
mov edi, dword [eax]
mov dword [eax], ebx
cmp edi, ebx
je 0x105f840
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 0x105f877
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x105f85c
push 0x2f
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
pop ecx
cmp eax, ebx
jne 0x105f861
mov eax, 0x100c17c
push dword [esi + 0x40]
push dword [esi + 0x44]
push eax
push 0x100c148
push 4
call fcn.01055c8a
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.01047480
leave
ret