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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, reloc.MFC80U.DLL_Ordinal_672
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rcx + 0x1c8]
xor r14d, r14d
mov rbp, rdx
mov qword [rsp + 0x50], rax
mov eax, dword [rcx + 0x190]
mov qword [rsp + 0x58], rdx
mov rbx, rcx
mov dword [rcx + 0x1d0], r14d
mov dword [rsp + 0x40], r14d
imul eax, dword [rcx + 0x230]
cqo
mov r13d, r14d
movabs rdi, 0xffffffff0ffffff8
and edx, 0x7fffff
add rax, rdx
mov r15, rax
and eax, 0x7fffff
sub rax, rdx
sar r15, 0x17
test r15, r15
mov r12, rax
mov qword [rsp + 0x48], rax
jle 0x14012461e
movaps xmmword [rsp + 0x290], xmm6
movsd xmm6, qword [0x1403b85a8]
mov rsi, r14
nop
nop
nop
mov ecx, 0x800000
call sub.MFC80U.DLL_Ordinal_265
xor edx, edx
mov r8d, 0x800000
mov rcx, rax
mov r12, rax
call sub.ntdll.dll_memset
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rax
mov r9d, 0x200000
mov r8, r12
mov rdx, rbp
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.14012f900
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + reloc.MFC80U.DLL_Ordinal_512]
cmp eax, 0x3e8
jb 0x14012436c
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x80], r14w
call sub.ntdll.dll_memset
mov edx, r13d
cvtsi2sd xmm0, r15
mov eax, 0x64
lea rcx, [rsp + 0x80]
cvtsi2sd xmm1, rdx
lea rdx, str.FAT_Table_Rewriting___d___...
divsd xmm1, xmm0
mulsd xmm1, xmm6
cvttsd2si rdi, xmm1
cmp edi, 0x64
cmova edi, eax
mov r8d, edi
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rbx + 0x78]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x70]
lea rdx, str.Status:_d
lea rcx, [rsp + 0x80]
mov r8d, edi
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rbx + 0x78]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cvtsi2sd xmm0, dword [rbx + 0x1f0]
mov rcx, qword [rbx + 0x78]
mov dword [rbx + reloc.MFC80U.DLL_Ordinal_512], eax
cmp edi, 0x64
mov eax, 0x64
cmovg edi, eax
mov rax, qword [rcx]
cvtsi2sd xmm1, edi
mulsd xmm1, qword [rbx + 0x1e8]
addsd xmm1, xmm0
cvttsd2si edi, xmm1
call qword [rax + 0xa0]
cmp eax, edi
jge 0x140124362
mov rcx, qword [rbx + 0x78]
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x10]
movabs rdi, 0xffffffff0ffffff8
jmp 0x14012436c
movabs rdi, 0xffffffff0ffffff8
test r13d, r13d
jne 0x140124375
mov qword [r12], rdi
cmp dword [rbx + 0x1d4], r14d
jne 0x1401243a7
mov eax, r14d
mov rcx, r12
cmp dword [rcx], r14d
je 0x140124399
add eax, 1
add rcx, 4
cmp eax, 0x200000
jb 0x140124384
jmp 0x1401243a7
mov ecx, r13d
shl ecx, 0x15
add ecx, eax
mov dword [rbx + 0x1d4], ecx
mov ecx, dword [rbx + 0x230]
shl rsi, 0x17
mov rax, rsi
cqo
idiv rcx
mov rsi, rax
mov eax, dword [rbx + 0x194]
add rsi, rax
mov eax, 0x800000
cqo
mov r8, rsi
idiv rcx
mov rcx, qword [rbx + 0x30]
mov rdx, r12
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x1401244d5
call fcn.140049470
lea rcx, [0x14043e030]
xor edx, edx
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._fatresize.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140124427
mov r8, r14
jmp 0x1401244b0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x70]
mov r8d, Ordinal_2253
mov byte [rsp + 0x70], r14b
mov qword [rsp + 0x71], rax
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea r8, [0x14043e030]
lea rdx, [rdi + 1]
mov rcx, r8
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140124470
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x70]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401244a0
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_write_sector.
mov rcx, rbp
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x78]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rbp, qword [rsp + 0x58]
cmp dword [rbx + 0x1ac], 2
jne 0x1401245ef
mov ecx, dword [rbx + 0x230]
mov r8d, dword [rbx + 0x190]
mov eax, 0x800000
cqo
add r8, rsi
idiv rcx
mov rcx, qword [rbx + 0x30]
mov rdx, r12
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x1401245ef
call fcn.140049470
lea rcx, [0x14043e030]
xor edx, edx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str..._fatresize.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140124551
mov r8, r14
jmp 0x1401245d0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x60]
mov r8d, Ordinal_2267
mov byte [rsp + 0x60], r14b
mov qword [rsp + 0x61], rax
mov word [rsp + 0x69], ax
mov byte [rsp + 0x6b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea r8, [0x14043e030]
lea rdx, [rdi + 1]
mov rcx, r8
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140124590
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x60]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401245c0
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_write_sector.
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x78]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_266
add r13d, 1
movabs rdi, 0xffffffff0ffffff8
mov esi, r13d
cmp rsi, r15
jl 0x140124210
mov r12, qword [rsp + 0x48]
movaps xmm6, xmmword [rsp + 0x290]
test r12, r12
jle 0x140124900
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_265
mov r8, r12
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0x800000
mov rax, r12
cqo
mov r8, rsi
mov rcx, rbx
and edx, 3
lea rdi, [rdx + rax]
lea rax, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x28], rax
sar rdi, 2
mov dword [rsp + 0x20], r15d
mov r9d, edi
call fcn.14012f900
test r15, r15
jne 0x140124689
movabs rax, 0xffffffff0ffffff8
mov qword [rsi], rax
cmp dword [rbx + 0x1d4], r14d
jne 0x1401246c0
test edi, edi
mov ecx, r14d
je 0x1401246c0
mov rax, rsi
nop
cmp dword [rax], r14d
je 0x1401246b2
add ecx, 1
add rax, 4
cmp ecx, edi
jb 0x1401246a0
jmp 0x1401246c0
mov eax, r15d
shl eax, 0x15
add eax, ecx
mov dword [rbx + 0x1d4], eax
mov ecx, dword [rbx + 0x230]
shl r15, 0x17
mov rax, r15
cqo
idiv rcx
mov rbp, rax
mov eax, dword [rbx + 0x194]
add rbp, rax
mov rax, r12
cqo
mov r8, rbp
idiv rcx
mov rcx, qword [rbx + 0x30]
mov rdx, rsi
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x1401247ea
call fcn.140049470
lea r13, [0x14043e030]
xor edx, edx
mov rcx, r13
mov r8d, 0x80
mov r12, rax
call sub.ntdll.dll_memset
lea rcx, str..._fatresize.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140124741
mov r8, r14
jmp 0x1401247c3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x60]
mov r8d, 0x8fd
mov byte [rsp + 0x60], r14b
mov qword [rsp + 0x61], rax
mov word [rsp + 0x69], ax
mov byte [rsp + 0x6b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, r13
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x140124780
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x60]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401247b0
mov r8, r13
mov rax, qword [r12]
lea rdx, str._s:_Failed_to_write_sector.
mov rcx, r12
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x78]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r12, qword [rsp + 0x48]
jmp 0x1401247f1
lea r13, [0x14043e030]
cmp dword [rbx + 0x1ac], 2
jne 0x1401248f8
mov ecx, dword [rbx + 0x230]
mov r8d, dword [rbx + 0x190]
mov rax, r12
cqo
add r8, rbp
idiv rcx
mov rcx, qword [rbx + 0x30]
mov rdx, rsi
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x1401248f8
call fcn.140049470
xor edx, edx
mov r8d, 0x80
mov rcx, r13
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str..._fatresize.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1401248d5
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x60]
mov r8d, 0x907
mov byte [rsp + 0x60], r14b
mov qword [rsp + 0x61], rax
mov word [rsp + 0x69], ax
mov byte [rsp + 0x6b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, r13
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x1401248a0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasb al, byte [rdi]
xor ecx, ecx
lea r8, [rsp + 0x60]
movzx eax, byte [r8 + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401248c1
mov r14, r13
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_write_sector.
mov r8, r14
mov rcx, rbp
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x78]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, rsi
call sub.MFC80U.DLL_Ordinal_266
mov rax, qword [rsp + 0x50]
sub eax, dword [rsp + 0x40]
mov dword [rbx + 0x1d0], eax
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + reloc.MFC80U.DLL_Ordinal_752]
add rsp, reloc.MFC80U.DLL_Ordinal_672
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret