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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538b48
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x19b04
call fcn.00513490
mov eax, dword [0x58a110]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
mov edi, ecx
mov dword [ebp - 0x19ad4], edi
mov dword [ebp - 0x19ac0], eax
mov esi, edx
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40c1fd
mov byte [eax], 0
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x40c209
lea eax, [ebp + 0xc]
push 0x566f0c
push eax
call fcn.0050e6b5
add esp, 8
mov dword [ebp - 0x19ac4], eax
test eax, eax
jne 0x40c253
call fcn.00510971
mov ecx, dword [eax]
push ecx
call fcn.005108c5
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 8
jb 0x40c601
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040dabc
add esp, 4
jmp 0x40c601
push 0x566db9
lea ecx, [edi + 0x2c]
call fcn.0040d7c0
cmp dword [edi + 4], 0
mov dword [edi + 0x20], 0
jne 0x40c29d
mov ecx, esi
push ebx
mov esi, edi
call fcn.0040bf40
test eax, eax
jne 0x40c29d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 8
jb 0x40c601
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040dabc
add esp, 4
jmp 0x40c601
test ebx, ebx
je 0x40c2a7
mov eax, dword [edi + 4]
mov dword [eax + 0x14], ebx
mov byte [ebp - 4], 1
cmp byte [edi + 0xc], 0
mov eax, 2
je 0x40c2bb
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, dword [ebp - 0x19ac0]
push 0
push 0
push eax
push 1
push ecx
mov ecx, dword [edi + 4]
call fcn.00420099
xor ebx, ebx
mov esi, eax
push ebx
mov dword [ebp - 0x19ac8], esi
mov dword [ebp - 4], ebx
call fcn.00510478
fldz
mov dword [ebp - 0x19acc], edx
fstp qword [ebp - 0x19af0]
add esp, 4
lea edx, [ebp - 0x19ad0]
push edx
lea ecx, [ebp - 0x19af0]
mov dword [ebp - 0x19ad0], eax
mov dword [ebp - 0x19ae8], ebx
call fcn.0040d3e0
cmp esi, ebx
je 0x40c550
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x19ac0], eax
mov ecx, dword [ebp - 0x19ac8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
push 0x1969f
lea edx, [ebp - 0x19abc]
push edx
call eax
mov esi, eax
test esi, esi
je 0x40c506
mov ecx, dword [ebp - 0x19ac4]
push ecx
push esi
lea edx, [ebp - 0x19abc]
push 1
push edx
mov byte [ebp + esi - 0x19abc], 0
call fcn.0050fa41
add esp, 0x10
cmp eax, esi
jne 0x40c27b
push 0
add ebx, esi
call fcn.00510478
fldz
add esp, 4
fstp qword [ebp - 0x19afc]
lea ecx, [ebp - 0x19adc]
push ecx
lea ecx, [ebp - 0x19afc]
mov dword [ebp - 0x19adc], eax
mov dword [ebp - 0x19ad8], edx
mov dword [ebp - 0x19af4], 0
call fcn.0040d3e0
lea edx, [ebp - 0x19af0]
push edx
lea esi, [ebp - 0x19b10]
lea eax, [ebp - 0x19afc]
call fcn.0040d1c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebp - 0x19ac0]
cmp eax, 0x1f4
jbe 0x40c49f
call esi
fldz
fld qword [ebp - 0x19b10]
mov dword [ebp - 0x19ac0], eax
fcom st(1)
fnstsw ax
test ah, 5
jp 0x40c405
fld qword [0x567eb0]
jmp 0x40c40b
fld qword [0x567df8]
faddp st(1)
fmul qword [0x567ec8]
call fcn.00513af6
mov dword [ebp - 0x19ae4], eax
mov dword [ebp - 0x19ae0], edx
fild qword [ebp - 0x19ae4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40c471
mov eax, ebx
mov dword [ebp - 0x19acc], eax
fild dword [ebp - 0x19acc]
test eax, eax
jns 0x40c44d
fadd qword [0x567ee0]
fmul qword [0x567ee8]
mov ecx, dword [edi + 4]
sub esp, 8
fdivrp st(1)
fst qword [edi + 0x10]
fstp qword [esp]
push ebx
push 0x567e0c
call fcn.0040cf60
add esp, 0x10
jmp 0x40c49f
mov ecx, dword [edi + 4]
fstp st(0)
push ebx
push str.Read__d_bytes
call fcn.0040cf60
mov ecx, ebx
add esp, 8
mov dword [ebp - 0x19acc], ecx
fild dword [ebp - 0x19acc]
test ecx, ecx
jns 0x40c49c
fadd qword [0x567ee0]
fstp qword [edi + 0x10]
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x40c4b9
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40c32b
mov byte [eax], 0
jmp 0x40c32b
mov esi, dword [edi + 0x30]
test esi, esi
je 0x40c32b
mov edx, ebx
mov dword [ebp - 0x19acc], edx
fild dword [ebp - 0x19acc]
test edx, edx
jns 0x40c4dc
fadd qword [0x567ee0]
mov dword [ebp - 0x19acc], eax
fild dword [ebp - 0x19acc]
test eax, eax
jns 0x40c4f2
fadd qword [0x567ee0]
fdivp st(1)
fmul qword [0x567ed8]
call fcn.00513ac0
mov byte [esi], al
jmp 0x40c32b
mov esi, dword [ebp - 0x19ac8]
lea eax, [edi + 0x20]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0041ef8e
push 0
lea ecx, [edi + 0x2c]
push ecx
push 0x15
mov ecx, esi
call fcn.0041fd02
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x19ac4]
push ecx
call fcn.0050e9a0
add esp, 4
mov ecx, dword [edi + 4]
push 0x567810
call fcn.0040cf60
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 8
jb 0x40c579
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040dabc
add esp, 4
mov eax, 1
jmp 0x40c603
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0050e12a
mov esp, ebp
pop ebp
ret 0x24