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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x1b4]
push eax
call fcn.1001a7e0
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], edx
jmp 0x10020ee0
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x10021788
mov eax, dword [esi + 0x1bc]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x10021788
test ecx, ecx
je 0x10020f14
mov eax, dword [esi + 0x1bc]
sub eax, ecx
sar eax, 4
cmp edx, eax
jb 0x10020f1a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1b8]
add eax, dword [esp + 0x34]
mov edi, dword [esi + 0x1cc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], eax
xor edx, edx
mov eax, 0x800000
div edi
mov dword [esp + 0x58], ecx
movzx ecx, word [esi + 0x50]
imul ecx, ebx
xor ebx, ebx
push ebx
xor edx, edx
push eax
push edx
push ecx
mov dword [esp + 0x58], eax
call fcn.100595b0
imul edi, dword [esp + 0x48]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov dword [esp + 0x14], eax
xor eax, eax
add esp, 4
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jl 0x10021281
jg 0x10020fa4
cmp dword [esp + 0x38], eax
jbe 0x10021281
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
sub ecx, 2
sbb edi, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edi
jmp 0x10020fc8
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
movzx eax, word [esi + 0x50]
push edi
cdq
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [esp + 0x48]
mov ebx, eax
xor eax, eax
push eax
mov eax, dword [esp + 0x2c]
mov edi, edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [esp + 0x48]
add ebx, eax
adc edi, edx
sub ebx, dword [esi + 0x38]
mov edx, dword [esp + 0x10]
sbb edi, dword [esi + 0x3c]
add ebx, dword [esi + 0x148]
adc edi, dword [esi + 0x14c]
xor eax, eax
push eax
push ecx
mov ecx, dword [esi + 0x28]
push edi
push ebx
push edx
call fcn.1002ad30
test eax, eax
je 0x10021530
mov ecx, dword [esi + 0x1c4]
xor eax, eax
push eax
mov eax, dword [esp + 0x4c]
push eax
push edi
push ebx
mov ebx, dword [esp + 0x20]
push ebx
call fcn.1002ad60
test eax, eax
je 0x10021586
mov ecx, dword [esi + 0x120]
mov edx, dword [esp + 0x48]
push 0
push ecx
xor eax, eax
push eax
push edx
call sub.ntdll.dll__alldiv
add dword [esi + 0x1b0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18c]
cmp eax, 0x3e8
jb 0x10021257
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x74]
call edx
test eax, eax
jne 0x100215e0
push 0x1fe
push eax
mov word [esp + 0xf0], ax
lea eax, [esp + 0xf2]
push eax
call sub.ntdll.dll_memset
mov edx, dword [esi + 0x1b0]
mov ecx, dword [esi + 0x1ac]
mov eax, edx
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x100210cb
fadd qword [0x100644a0]
mov eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x100210df
fadd qword [0x100644a0]
fdivp st(1)
fmul qword [0x10064600]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
cmp edi, 0x64
fldcw word [esp + 0x14]
jbe 0x10021113
mov edi, 0x64
cmp edx, ecx
jbe 0x1002111d
mov dword [esi + 0x1b0], ecx
xor ebx, ebx
push 0x3e
lea ecx, [esp + 0xae]
push ebx
push ecx
mov word [esp + 0xb4], bx
call sub.ntdll.dll_memset
push 0x3e
lea edx, [esp + 0x7a]
push ebx
push edx
mov word [esp + 0x80], bx
call sub.ntdll.dll_memset
mov eax, dword [esi + 0x1b0]
mul dword [esi + 0x1cc]
mov ecx, dword [esi + 0x120]
add esp, 0x18
push ebx
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0xb0]
call fcn.1001df00
mov eax, dword [esi + 0x1ac]
mul dword [esi + 0x1cc]
mov ecx, dword [esi + 0x120]
add esp, 8
push ebx
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x70]
call fcn.1001df00
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0xb4]
push eax
push edi
lea ecx, [esp + 0xfc]
push str.Data_Moving___d_____s__s_...
push ecx
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0x1c
lea eax, [esp + 0xe8]
push eax
call edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xf0]
push str._s__s
push edx
call ebx
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
add esp, 0x10
lea edx, [esp + 0xe8]
push edx
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, 0x64
mov dword [esi + 0x18c], eax
mov dword [esp + 0x14], edi
jle 0x10021227
mov dword [esp + 0x14], 0x64
fild dword [esp + 0x14]
fmul qword [esi + 0x180]
fiadd dword [esi + 0x188]
call fcn.100594f0
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0x4c]
call eax
cmp eax, edi
jge 0x10021257
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push edi
call eax
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x2c]
adc eax, 0
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
jl 0x10020fc0
jg 0x10021281
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x28], ecx
jb 0x10020fc0
cmp dword [esp + 0x24], 0
jl 0x10021510
jg 0x10021299
cmp dword [esp + 0x20], 0
jbe 0x10021510
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x10021634
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
sub ecx, 2
sbb edi, eax
movzx eax, word [esi + 0x50]
cdq
push edx
push eax
push edi
push ecx
call sub.ntdll.dll__allmul
mov ecx, dword [esp + 0x48]
mov edi, eax
sub edi, dword [esi + 0x38]
mov ebx, edx
sbb ebx, dword [esi + 0x3c]
mov edx, dword [esp + 0x3c]
xor eax, eax
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [esp + 0x24]
add edi, eax
mov eax, dword [esp + 0x10]
adc ebx, edx
add edi, dword [esi + 0x148]
mov edx, dword [esp + 0x20]
adc ebx, dword [esi + 0x14c]
push ecx
mov ecx, dword [esi + 0x28]
push edx
push ebx
push edi
push eax
call fcn.1002ad30
test eax, eax
je 0x1002168c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push ebx
push edi
push eax
call fcn.1002ad60
test eax, eax
je 0x100216e4
mov ecx, dword [esi + 0x120]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
xor ebx, ebx
push ebx
push ecx
push edx
push eax
call sub.ntdll.dll__alldiv
add dword [esi + 0x1b0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18c]
cmp eax, 0x3e8
jb 0x10021510
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x1002173c
push 0x1fe
lea ecx, [esp + 0xee]
push ebx
push ecx
mov word [esp + 0xf4], bx
call sub.ntdll.dll_memset
mov edx, dword [esi + 0x1b0]
mov ecx, dword [esi + 0x1ac]
mov eax, edx
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x100213c2
fadd qword [0x100644a0]
mov eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x100213d6
fadd qword [0x100644a0]
fdivp st(1)
fmul qword [0x10064600]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
cmp edi, 0x64
fldcw word [esp + 0x14]
jbe 0x1002140a
mov edi, 0x64
cmp edx, ecx
jbe 0x10021414
mov dword [esi + 0x1b0], ecx
push 0x3e
lea ecx, [esp + 0x6e]
push ebx
push ecx
mov word [esp + 0x74], bx
call sub.ntdll.dll_memset
push 0x3e
lea edx, [esp + 0xba]
push ebx
push edx
mov word [esp + 0xc0], bx
call sub.ntdll.dll_memset
mov eax, dword [esi + 0x1b0]
mul dword [esi + 0x1cc]
mov ecx, dword [esi + 0x120]
add esp, 0x18
push ebx
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x70]
call fcn.1001df00
mov eax, dword [esi + 0x1ac]
mul dword [esi + 0x1cc]
mov ecx, dword [esi + 0x120]
add esp, 8
push ebx
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0xb0]
call fcn.1001df00
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x74]
push eax
push edi
lea ecx, [esp + 0xfc]
push str.Data_Moving___d_____s__s_...
push ecx
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0x1c
lea eax, [esp + 0xe8]
push eax
call edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0xf0]
push str._s__s
push edx
call ebx
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
add esp, 0x10
lea edx, [esp + 0xe8]
push edx
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ecx, esi
mov dword [esi + 0x18c], eax
call fcn.1001e7b0
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add dword [esp + 0x48], 1
mov edx, dword [esp + 0x48]
add esp, 4
add dword [esp + 0x34], 0x10
jmp 0x10020ee0
call fcn.10059c60
mov ebx, eax
mov edi, dword [ebx]
push 0xaf6
mov ecx, str..._fatcpyex.cpp
add edi, 8
call fcn.1001dc10
mov edx, dword [edi]
push eax
push str._s:_Failed_to_read_sector.
push ebx
call edx
mov eax, dword [esp + 0x20]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 0x14
push 0x21
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
call fcn.10059c60
mov edi, dword [eax]
push 0xafe
mov ecx, str..._fatcpyex.cpp
mov dword [esp + 0x1c], eax
add edi, 8
call fcn.1001dc10
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
push str._s:_Failed_to_write_sector.
push ecx
call edx
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov esi, dword [esi + 0x70]
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
add esp, 0x14
push 0x22
mov ecx, esi
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x70]
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push 0x17
mov ecx, esi
call edx
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0xb0b
mov ecx, str..._fatcpyex.cpp
add esi, 8
call fcn.1001dc10
push eax
mov eax, dword [esi]
push 0x10064608
push edi
call eax
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x70]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0x17
mov ecx, esi
call eax
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0xb2f
mov ecx, str..._fatcpyex.cpp
add esi, 8
call fcn.1001dc10
mov ecx, dword [esi]
push eax
push 0x10064608
push edi
call ecx
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
call fcn.10059c60
mov ebx, eax
mov edi, dword [ebx]
push 0xb37
mov ecx, str..._fatcpyex.cpp
add edi, 8
call fcn.1001dc10
push eax
mov eax, dword [edi]
push str._s:_Failed_to_read_sector.
push ebx
call eax
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov esi, dword [esi + 0x70]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
add esp, 0x14
push 0x21
mov ecx, esi
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
call fcn.10059c60
mov ebx, eax
mov edi, dword [ebx]
push 0xb3f
mov ecx, str..._fatcpyex.cpp
add edi, 8
call fcn.1001dc10
mov ecx, dword [edi]
push eax
push str._s:_Failed_to_write_sector.
push ebx
call ecx
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov esi, dword [esi + 0x70]
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
add esp, 0x14
push 0x22
mov ecx, esi
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 0x17
call edx
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0xb4c
mov ecx, str..._fatcpyex.cpp
add esi, 8
call fcn.1001dc10
push eax
mov eax, dword [esi]
push 0x10064608
push edi
call eax
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10059076
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10059076
mov esp, ebp
pop ebp
ret