Function at 0x428ed7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cd314]
dec eax
neg eax
sbb eax, eax
add eax, 0x3f4
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
cmp esi, eax
jne 0x428f16
mov dword [0x4ce618], eax
mov dword [0x4ce610], eax
mov dword [0x4ce614], eax
call dword [sym.imp.___total_physical_size__lu_MB_GetTickCount]
mov dword [0x4ce608], eax
jmp 0x42931a
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
or eax, ebx
jne 0x428f3b
mov eax, dword [0x4ce610]
mov dword [ebp + 0x10], eax
mov eax, dword [0x4ce614]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov ebx, eax
jmp 0x428f47
mov dword [0x4ce610], edi
mov dword [0x4ce614], ebx
mov eax, dword [0x4ce618]
cmp dword [ebp + 0xc], eax
jae 0x428f54
mov dword [ebp + 0xc], eax
push 0x3e8
push 0x4ce604
call fcn.004430f8
test eax, eax
jne 0x428f70
cmp dword [ebp + 0x18], eax
je 0x429310
mov ecx, 0x4cdf98
call fcn.004429ba
mov ecx, eax
test ecx, ecx
je 0x428fba
mov eax, dword [ebp + 0xc]
xor edx, edx
shld edx, eax, 0x10
shl eax, 0x10
mov dword [ecx + 0x30], edi
xor edi, edi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x34], ebx
mov eax, dword [esi + 0x3a0]
inc edi
cmp eax, edi
jb 0x428fa7
mov edi, eax
mov eax, dword [esi + 0x3a4]
imul eax, eax, 0x64
xor edx, edx
div edi
mov dword [ecx + 0xb8], eax
cmp dword [0x4cd2d4], 0
jne 0x429136
call fcn.004552b3
add eax, 0x40
push eax
call fcn.00450a39
push eax
call fcn.0045525d
pop ecx
pop ecx
test eax, eax
jne 0x428fed
cmp dword [0x4cd2f4], eax
je 0x429136
mov edi, dword [0x4cdda8]
mov ebx, 0x4ce500
mov ecx, ebx
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42901c
test dl, dl
je 0x429018
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42901c
add eax, 2
add ecx, 2
test dl, dl
jne 0x428ffc
xor eax, eax
jmp 0x429021
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4290bd
cmp byte [0x4ce500], 0
je 0x429043
push 0x46a57c
call fcn.00450f5c
mov edi, dword [0x4cdda8]
pop ecx
cmp dword [0x4cd630], 0
push edi
je 0x42905b
push str.write_to__s
call fcn.0041c7ee
pop ecx
pop ecx
jmp 0x429081
cmp dword [0x4cd328], 0
lea eax, [esi + 0xc]
push eax
jne 0x429074
push str._s_____s
call fcn.0041c7ee
jmp 0x42907e
push 0x47293c
call fcn.00450f5c
add esp, 0xc
cmp dword [0x4cd324], 0
jne 0x4290aa
push dword [0x4cdda8]
lea eax, [esi + 0xc]
push eax
push str._n_s_____s_n
call fcn.004552b3
add eax, 0x40
push eax
call fcn.00455151
add esp, 0x10
mov eax, dword [0x4cdda8]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4290b3
mov eax, dword [esi + 0x3a0]
xor ebx, ebx
inc ebx
cmp eax, ebx
jb 0x4290cc
mov ebx, eax
xor edx, edx
inc edx
shr eax, 4
mov edi, edx
cmp eax, edx
jb 0x4290da
mov edi, eax
mov ecx, dword [ebp + 0xc]
shr ecx, 4
cmp ecx, edx
jae 0x4290e6
mov ecx, edx
mov eax, dword [esi + 0x3a4]
imul eax, eax, 0x64
xor edx, edx
div ebx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
push edi
push ecx
push str.___read__4u__4uMB__written__4I64uMB__d___r
call fcn.004552b3
add eax, 0x40
push eax
call fcn.00455151
add esp, 0x1c
cmp dword [ebp + 0x18], 0
je 0x429136
push 0x46a57c
call fcn.004552b3
add eax, 0x40
push eax
call fcn.00455151
pop ecx
pop ecx
mov eax, dword [esi + 0x3a0]
xor ebx, ebx
inc ebx
shr eax, 4
mov ecx, ebx
cmp eax, ebx
jb 0x42914a
mov ecx, eax
mov eax, dword [esi + 0x3a4]
shr eax, 4
cmp eax, ebx
jae 0x429159
mov eax, ebx
push 0
push ecx
push eax
push dword [ebp - 4]
call fcn.0044803f
mov eax, dword [esi + 0x3a0]
mov ecx, ebx
cmp eax, ebx
jb 0x429173
mov ecx, eax
mov eax, dword [esi + 0x3a4]
imul eax, eax, 0x64
xor edx, edx
div ecx
push 0x469ec0
push eax
lea eax, [esi + 0xc]
push eax
push str._s__u______s
push 0
call fcn.00447f71
mov edi, dword [sym.imp.___total_physical_size__lu_MB_GetTickCount]
add esp, 0x14
call edi
sub eax, dword [0x4ce608]
cmp eax, ebx
jbe 0x4291b5
call edi
mov ebx, eax
sub ebx, dword [0x4ce608]
mov edi, dword [esi + 0x3a4]
xor ecx, ecx
mov eax, edi
shld ecx, eax, 0x10
shl eax, 0x10
sub eax, dword [esi + 0x3c0]
push 0
sbb ecx, dword [esi + 0x3c4]
sub eax, dword [esi + 0x3b8]
push 0xea60
sbb ecx, dword [esi + 0x3bc]
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
call fcn.00453310
push 0
push ebx
push edx
push eax
call fcn.004544c0
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x429268
cmp edi, 1
ja 0x42920c
xor edi, edi
inc edi
push edx
push eax
push 0xa
push dword [0x4ce4c4]
push dword [0x4ce4c0]
call fcn.0040c6f5
push eax
push 0xc
push ebx
push edi
push dword [0x4bcb7c]
push dword [0x4bcb78]
call fcn.004544c0
push ebx
push dword [esi + 0x3a0]
push edx
push eax
call fcn.00453310
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
call fcn.0040c6f5
push eax
push str.estimated_size__sMB__available__sB___I64uMB_min
push 0x516
call fcn.00447f71
add esp, 0x18
jmp 0x429298
mov ecx, dword [0x4bcb7c]
push edx
push eax
mov eax, dword [0x4bcb78]
shrd eax, ecx, 0x14
push 0xc
shr ecx, 0x14
push ecx
push eax
call fcn.0040c6f5
push eax
push str.total_size_written__sMB__I64dMB_min
push 0x516
call fcn.00447f71
add esp, 0x14
mov eax, dword [esi + 0x3a0]
xor edx, edx
inc edx
shr eax, 4
mov edi, edx
cmp eax, edx
jb 0x4292ac
mov edi, eax
mov ecx, dword [ebp + 0xc]
shr ecx, 4
cmp ecx, edx
jae 0x4292b8
mov ecx, edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
shrd edx, eax, 0x14
shr eax, 0x14
push eax
push edx
push edi
push ecx
push str.read__u__uMB__written__uMB
push 0x3f6
call fcn.00447f71
mov eax, dword [esi + 0x3d0]
mov esi, dword [esi + 0x3d4]
mov ecx, eax
add esp, 0x18
or ecx, esi
je 0x429301
push esi
push eax
push str._I64u_unreadable_sectors
push 0x518
call fcn.00447f71
add esp, 0x10
call fcn.004552b3
add eax, 0x40
push eax
call fcn.004550f5
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
mov dword [0x4ce618], eax
pop ebx
pop esi
leave
ret 0x14