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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 8], esi
cmp edi, ebx
jne 0x4031db
mov dword [ebp - 8], 0x8000
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x4031ec
mov dword [ebp - 0xc], 0x418918
mov eax, dword [ebp + 8]
cmp eax, ebx
jl 0x403201
mov ecx, dword [0x7c70d8]
add ecx, eax
push ecx
call fcn.004031a5
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00403173
test eax, eax
jne 0x403218
push 0xfffffffffffffffd
pop eax
jmp 0x4033ca
test dword [ebp + 0x14], 0x80000000
je 0x40335d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x428930], 0xb
mov dword [0x428948], ebx
mov dword [ebp + 8], eax
jle 0x4033c7
mov ebx, 0x414918
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403260
mov esi, dword [ebp + 0x14]
push esi
push ebx
call fcn.00403173
test eax, eax
je 0x403210
sub dword [ebp + 0x14], esi
mov dword [0x428920], ebx
mov dword [0x428924], esi
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
push 0x428920
mov dword [0x428928], edi
mov dword [0x42892c], eax
call fcn.00407069
mov dword [ebp - 0x18], eax
test eax, eax
js 0x40334f
mov esi, dword [0x428928]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7c7174], 1
mov edi, eax
je 0x4032fc
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4032c9
cmp dword [ebp + 0x14], 0
jne 0x4032fc
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x58]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 0
call fcn.00404d3b
mov dword [ebp - 0x10], edi
xor eax, eax
cmp esi, eax
je 0x403344
cmp dword [ebp + 0x10], eax
jne 0x403327
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403356
cmp dword [ebp - 0x14], esi
jne 0x403356
add dword [ebp - 4], esi
jmp 0x403335
mov eax, dword [0x428928]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 4
jne 0x40327a
jmp 0x4033c7
cmp dword [ebp + 0x14], eax
jg 0x403253
jmp 0x4033c7
push 0xfffffffffffffffc
jmp 0x403212
push 0xfffffffffffffffe
jmp 0x403212
cmp edi, ebx
jne 0x4033ad
cmp dword [ebp + 0x14], ebx
jle 0x4033c7
mov ebx, 0x414918
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403376
mov esi, dword [ebp + 0x14]
push esi
push ebx
call fcn.00403173
test eax, eax
je 0x403210
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403356
cmp esi, dword [ebp + 0x10]
jne 0x403356
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40336b
jmp 0x4033c7
cmp dword [ebp + 0x14], esi
jge 0x4033b5
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403173
test eax, eax
je 0x403210
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10