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

Disassembly:
sub esp, 0x240
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x128]
imul edi, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x160]
mov edx, dword [esi + 0x164]
xor ebx, ebx
push ebx
push 0x800000
push ebx
push edi
mov dword [esp + 0x48], eax
mov dword [esi + 0x168], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], ebx
call sub.ntdll.dll__alldiv
push ebx
push 0x800000
push ebx
mov ebp, edx
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
call sub.ntdll.dll__allrem
cmp ebp, ebx
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ebx
jl 0x10018021
jg 0x10017d48
cmp dword [esp + 0x2c], ebx
jbe 0x10018021
mov dword [esp + 0x3c], ebx
jmp 0x10017d54
mov ebx, dword [esp + 0x10]
push 0x800000
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
push 0x800000
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x38], ebp
call sub.ntdll.dll_memset
mov ecx, dword [esp + 0x48]
add esp, 0x10
push 0x800000
lea eax, [esp + 0x38]
push eax
push ebx
push 0x200000
push ebp
push ecx
mov ecx, esi
call fcn.10017af0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x198]
cmp eax, 0x3e8
jb 0x10017ea2
push 0x1fe
lea edx, [esp + 0x52]
push 0
push edx
mov word [esp + 0x58], 0
call sub.ntdll.dll_memset
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x18], ebx
fild dword [esp + 0x18]
jge 0x10017dd5
fadd qword [0x100644a0]
fild qword [esp + 0x2c]
fnstcw word [esp + 0x14]
fdivp st(1)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fmul qword [0x10064600]
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
cmp edi, 0x64
fldcw word [esp + 0x14]
jbe 0x10017e0d
mov edi, 0x64
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
push edi
lea eax, [esp + 0x50]
push str.FAT_Table_Rewriting___d___...
push eax
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call edx
push edi
lea eax, [esp + 0x50]
push str.Status:_d
push eax
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, 0x64
mov dword [esi + 0x198], eax
mov dword [esp + 0x14], edi
jle 0x10017e6e
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 edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
cmp eax, edi
jge 0x10017e9e
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push edi
call edx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x10017eb4
mov dword [ebp], 0xffffff8
mov dword [ebp + 4], 0xffffffff
cmp dword [esi + 0x16c], 0
jne 0x10017ede
xor eax, eax
nop
cmp dword [ebp + eax*4], 0
je 0x10017ed3
add eax, 1
cmp eax, 0x200000
jb 0x10017ec0
jmp 0x10017ede
shl ebx, 0x15
add ebx, eax
mov dword [esi + 0x16c], ebx
mov edi, dword [esi + 0x1c8]
xor ebx, ebx
push ebx
push 0x800000
xor eax, eax
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.ntdll.dll__allmul
push ebx
push edi
push edx
push eax
call sub.ntdll.dll__alldiv
mov ecx, dword [esi + 0x12c]
mov edi, eax
mov ebx, edx
xor edx, edx
add edi, ecx
adc ebx, edx
xor eax, eax
push eax
mov eax, dword [esi + 0x1c8]
push eax
push edx
push 0x800000
call sub.ntdll.dll__alldiv
mov ecx, dword [esi + 0x28]
push edx
push eax
push ebx
push edi
push ebp
call fcn.1002ad60
test eax, eax
jne 0x10017f78
call fcn.10059c60
mov ebp, dword [eax]
push 0x8cb
mov ecx, str..._fatresize.cpp
mov dword [esp + 0x1c], eax
add ebp, 8
call fcn.10016e70
mov ecx, dword [ebp]
push eax
mov eax, dword [esp + 0x20]
push str._s:_Failed_to_write_sector.
push eax
call ecx
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 0x10
push 0x22
call eax
mov ebp, dword [esp + 0x28]
cmp dword [esi + 0x144], 2
jne 0x10017fe7
mov edx, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x128]
push 0
push edx
push 0
add edi, ecx
push 0x800000
adc ebx, 0
call sub.ntdll.dll__alldiv
mov ecx, dword [esi + 0x28]
push edx
push eax
push ebx
push edi
push ebp
call fcn.1002ad60
test eax, eax
jne 0x10017fe7
call fcn.10059c60
mov ebx, eax
mov edi, dword [ebx]
push 0x8d6
mov ecx, str..._fatresize.cpp
add edi, 8
call fcn.10016e70
push eax
mov eax, dword [edi]
push str._s:_Failed_to_write_sector.
push ebx
call eax
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 0x10
push 0x22
call eax
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x14]
add eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
xor eax, eax
add esp, 4
cmp eax, dword [esp + 0x30]
jl 0x10017d50
jg 0x1001801b
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x2c]
jb 0x10017d50
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jl 0x100181d4
jg 0x10018035
cmp edi, ebx
jbe 0x100181d4
push edi
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
push edi
mov ebp, eax
push 0
push ebp
call sub.ntdll.dll_memset
mov edx, dword [esp + 0x34]
add esp, 0x10
push 0
push 4
push edx
push edi
call sub.ntdll.dll__alldiv
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push 0x800000
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push edi
push ebx
push ebp
push ecx
mov ecx, esi
call fcn.10017af0
mov ecx, dword [esp + 0x30]
mov edx, edi
or edx, ecx
jne 0x1001808f
mov dword [ebp], 0xffffff8
mov dword [ebp + 4], 0xffffffff
cmp dword [esi + 0x16c], 0
jne 0x100180bd
xor eax, eax
test ebx, ebx
jbe 0x100180bd
mov edi, edi
cmp dword [ebp + eax*4], 0
je 0x100180b0
add eax, 1
cmp eax, ebx
jb 0x100180a0
jmp 0x100180bd
mov edx, edi
shl edx, 0x15
add edx, eax
mov dword [esi + 0x16c], edx
mov ebx, dword [esi + 0x1c8]
push 0
push 0x800000
push ecx
push edi
call sub.ntdll.dll__allmul
xor ecx, ecx
push ecx
push ebx
push edx
push eax
call sub.ntdll.dll__alldiv
mov edi, eax
mov eax, dword [esi + 0x12c]
xor ecx, ecx
add edi, eax
mov ebx, edx
mov edx, dword [esp + 0x24]
adc ebx, ecx
xor eax, eax
push eax
mov eax, dword [esi + 0x1c8]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call sub.ntdll.dll__alldiv
mov ecx, dword [esi + 0x28]
push edx
push eax
push ebx
push edi
push ebp
call fcn.1002ad60
test eax, eax
jne 0x10018159
call fcn.10059c60
mov dword [esp + 0x28], eax
mov eax, dword [eax]
add eax, 8
push 0x8fd
mov ecx, str..._fatresize.cpp
mov dword [esp + 0x1c], eax
call fcn.10016e70
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
push str._s:_Failed_to_write_sector.
push ecx
call eax
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 0x10
push 0x22
call eax
cmp dword [esi + 0x144], 2
jne 0x100181cb
mov edx, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x128]
mov eax, dword [esp + 0x24]
push 0
push edx
add edi, ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
adc ebx, 0
call sub.ntdll.dll__alldiv
mov ecx, dword [esi + 0x28]
push edx
push eax
push ebx
push edi
push ebp
call fcn.1002ad60
test eax, eax
jne 0x100181cb
call fcn.10059c60
mov ebx, eax
mov edi, dword [ebx]
push 0x907
mov ecx, str..._fatresize.cpp
add edi, 8
call fcn.10016e70
mov edx, dword [edi]
push eax
push str._s:_Failed_to_write_sector.
push ebx
call edx
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
add esp, 0x10
push 0x22
call edx
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24c]
pop edi
mov dword [esi + 0x168], eax
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10059076
add esp, 0x240
ret 4