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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x64
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ebx
cmp dword [ebp + 0x10], 0
jne 0x4030d7
mov dword [ebp - 0x60], 0x8000
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], edx
test edx, edx
jne 0x4030ef
mov dword [ebp - 0x5c], 0x410c70
test eax, eax
js 0x4030ff
add eax, dword [0x42f988]
push eax
call fcn.00403067
lea eax, [ebp - 0x50]
push 4
push eax
call fcn.00403080
mov edx, 0xfffffffd
test eax, eax
je 0x40330b
mov eax, dword [ebp - 0x50]
test eax, eax
jns 0x403287
call sub.KERNEL32.dll_GetTickCount
mov dword [0x420ca0], 8
mov dword [0x4211bc], 0
mov dword [0x4211b8], 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
and eax, 0x7fffffff
mov dword [0x42a848], 0x422840
mov dword [0x42a844], 0x422840
mov dword [0x42a840], 0x42a840
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x50], eax
test eax, eax
jle 0x403308
mov ebx, eax
cmp eax, 0x4000
jle 0x40318a
mov ebx, 0x4000
push ebx
push 0x40cc70
call fcn.00403080
test eax, eax
je 0x4032fe
sub dword [ebp - 0x50], ebx
mov dword [0x420c90], 0x40cc70
mov dword [0x420c94], ebx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov dword [0x420c98], edx
mov dword [0x420c9c], eax
push 0x420c90
call fcn.00406b74
test eax, eax
mov dword [ebp - 0x70], eax
js 0x4032f7
mov esi, dword [0x420c98]
sub esi, dword [ebp - 0x5c]
call sub.KERNEL32.dll_GetTickCount
test byte [0x42f914], 1
mov edi, eax
je 0x40322d
sub eax, dword [ebp - 0x68]
cmp eax, 0xc8
ja 0x4031ff
cmp dword [ebp - 0x50], 0
jne 0x40322d
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
push 0x64
sub eax, dword [ebp - 0x50]
lea ebx, [ebp - 0x4c]
push eax
call sub.KERNEL32.dll_MulDiv
push eax
push str....__d__
push ebx
call sub.USER32.dll_wsprintfA
push ebx
push 0
call fcn.004050ab
mov dword [ebp - 0x68], edi
add esp, 0xc
test esi, esi
je 0x40327f
cmp dword [ebp + 0x10], 0
jne 0x403257
lea eax, [ebp - 0x54]
push 0
push eax
push esi
push dword [ebp - 0x5c]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x4032c9
cmp dword [ebp - 0x54], esi
jne 0x4032c9
add dword [ebp - 0x64], esi
jmp 0x403270
sub dword [ebp - 0x60], esi
mov edx, dword [0x420c98]
add dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x60], 0
jle 0x403308
cmp dword [ebp - 0x70], 1
jne 0x4031b0
jmp 0x403308
mov eax, dword [ebp - 0x50]
jmp 0x403174
cmp dword [ebp + 0x10], 0
jne 0x4032dd
test eax, eax
jle 0x403308
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x60]
cmp ebx, eax
jle 0x40329d
mov ebx, eax
push ebx
push 0x40cc70
call fcn.00403080
test eax, eax
je 0x4032fe
lea eax, [ebp - 0x58]
push 0
push eax
push ebx
push 0x40cc70
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x4032c9
cmp ebx, dword [ebp - 0x58]
je 0x4032d0
mov edx, 0xfffffffe
jmp 0x40330b
add dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x50]
sub eax, ebx
mov dword [ebp - 0x50], eax
jmp 0x40328d
cmp ebx, eax
jle 0x4032e3
mov ebx, eax
push ebx
push dword [ebp + 0x10]
call fcn.00403080
mov edx, 0xfffffffd
test eax, eax
je 0x40330b
jmp 0x403305
mov edx, 0xfffffffc
jmp 0x40330b
mov edx, 0xfffffffd
jmp 0x40330b
mov dword [ebp - 0x64], ebx
mov edx, dword [ebp - 0x64]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10