Function at 0x491440
Capabilities:
Check for time delay via gettickcount
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2260
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ecx
test edx, edx
je 0x4916e4
test eax, eax
je 0x4916e4
test edi, edi
je 0x4916e4
test ecx, ecx
je 0x4916e4
push 0x53f750
push ecx
call fcn.004a1ea6
xor esi, esi
mov dword [ebp - 0x78], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x74], esi
test eax, eax
je 0x4914d9
mov esi, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], esi
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4914f9
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x4914fd
xor ebx, ebx
xor eax, eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], eax
call fcn.004828f0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00490a60
add esp, 8
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49153c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x48]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491555
lea eax, [ebp - 0x48]
push eax
call fcn.004906b0
add esp, 4
xor edi, edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x491586
call fcn.00488cb0
mov ecx, eax
xor eax, eax
jmp 0x49158d
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 4
test ecx, ecx
js 0x4916a9
cmp eax, 0xffffffff
je 0x4916a9
push 2
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push eax
push 0
push edi
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4915c9
call fcn.00488cb0
mov ecx, dword [ebp - 0x40]
call fcn.0048e5b0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
push esi
mov dword [ebp - 0x38], 0
call fcn.0048f160
test eax, eax
je 0x4916a9
jmp 0x491610
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4916dd
push 0
lea ecx, [ebp - 0x38]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491637
call fcn.00488cb0
test eax, eax
js 0x4916a9
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], eax
jne 0x4916a9
mov ecx, dword [ebp - 0x44]
add ebx, eax
mov edx, dword [ebp - 0x5c]
adc ecx, 0
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x49166f
push eax
push ecx
push ebx
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x4c]
push dword [ebp - 0x68]
push dword [ebp - 0x40]
push dword [ebp - 0x6c]
call edx
add esp, 0x24
test eax, eax
je 0x4916a9
cmp dword [ebp + 0x20], 0xffffffff
je 0x491683
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 0x20]
jae 0x4916a9
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
push esi
mov dword [ebp - 0x38], 0
call fcn.0048f160
test eax, eax
jne 0x491610
xor esi, esi
test edi, edi
je 0x4916b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4916d1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x78]
call fcn.00483010
mov eax, esi
jmp 0x4916e6
mov esi, 1
jmp 0x4916ab
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 - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret