Function at 0x14013c940
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 + 0x168]
xor r14d, r14d
mov rdi, rdx
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x13c]
mov qword [rsp + 0x48], rdx
mov rbx, rcx
mov dword [rcx + 0x170], r14d
mov dword [rsp + 0x40], r14d
imul eax, dword [rcx + 0x1d8]
cqo
mov r13d, r14d
movabs rsi, 0xffffffff0ffffff8
and edx, 0x7fffff
lea rbp, [0x14043e130]
add rax, rdx
mov r15, rax
and eax, 0x7fffff
sub rax, rdx
sar r15, 0x17
test r15, r15
mov r12, rax
mov qword [rsp + 0x50], rax
jle 0x14013ce26
movaps xmmword [rsp + 0x290], xmm6
movsd xmm6, qword [0x1403b85a8]
mov rsi, r14
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, rdi
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.14013c6f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + reloc.MFC80U.DLL_Ordinal_424]
cmp eax, 0x3e8
jb 0x14013cb36
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 + 0x60]
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 + 0x60]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cvtsi2sd xmm0, dword [rbx + 0x198]
mov rcx, qword [rbx + 0x60]
mov dword [rbx + reloc.MFC80U.DLL_Ordinal_424], eax
cmp edi, 0x64
mov eax, 0x64
cmovg edi, eax
mov rax, qword [rcx]
cvtsi2sd xmm1, edi
mulsd xmm1, qword [rbx + 0x190]
addsd xmm1, xmm0
cvttsd2si edi, xmm1
call qword [rax + 0xa0]
cmp eax, edi
jge 0x14013cb36
mov rcx, qword [rbx + 0x60]
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x10]
test r13d, r13d
jne 0x14013cb49
movabs rax, 0xffffffff0ffffff8
mov qword [r12], rax
cmp dword [rbx + 0x174], r14d
jne 0x14013cb7b
mov eax, r14d
mov rcx, r12
cmp dword [rcx], r14d
je 0x14013cb6d
add eax, 1
add rcx, 4
cmp eax, 0x200000
jb 0x14013cb58
jmp 0x14013cb7b
mov ecx, r13d
shl ecx, 0x15
add ecx, eax
mov dword [rbx + 0x174], ecx
mov edi, dword [rbx + 0x1d8]
mov rcx, qword [rbx + 0x180]
shl rsi, 0x17
mov rax, rsi
cqo
idiv rdi
mov rsi, rax
mov eax, dword [rbx + 0x134]
add rsi, rax
test rcx, rcx
jle 0x14013cbb0
movzx eax, word [rbx + 0x58]
imul rax, rcx
add rsi, rax
mov rcx, qword [rbx + reloc.MFC80U.DLL_Ordinal_376]
test rcx, rcx
jle 0x14013cbc7
movzx eax, word [rbx + 0x58]
imul rax, rcx
sub rsi, rax
mov rcx, qword [rbx + 0x30]
mov eax, 0x800000
mov r8, rsi
cqo
idiv rdi
mov rdx, r12
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x14013ccd7
call fcn.140049470
lea rcx, [0x14043e130]
xor edx, edx
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str...quickmovefat.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14013cc29
mov r8, r14
jmp 0x14013ccb0
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x70]
mov r8d, 0x608
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, [0x14043e130]
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 [rdx + rcx - 1], al
jne 0x14013cc70
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 0x14013cca0
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_write_sector.
mov rcx, rbp
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x60]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
lea rbp, [0x14043e130]
cmp dword [rbx + 0x148], 2
jne 0x14013cdf2
mov ecx, dword [rbx + 0x1d8]
mov r8d, dword [rbx + 0x13c]
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 0x14013cdf2
call fcn.140049470
xor edx, edx
mov r8d, 0x80
mov rcx, rbp
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str...quickmovefat.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14013cd4f
mov r8, r14
jmp 0x14013cdd3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x60]
mov r8d, reloc.MFC80U.DLL_Ordinal_1555
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, rbp
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rdx + rcx - 1], al
jne 0x14013cd90
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
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 0x14013cdc0
mov r8, rbp
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_write_sector.
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x60]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_266
mov rdi, qword [rsp + 0x48]
add r13d, 1
mov esi, r13d
cmp rsi, r15
jl 0x14013c9f0
mov r12, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x290]
movabs rsi, 0xffffffff0ffffff8
test r12, r12
jle 0x14013d13f
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_265
mov r8, r12
xor edx, edx
mov rcx, rax
mov rbp, rax
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0x800000
mov rax, r12
cqo
mov r8, rbp
mov rcx, rbx
and edx, 3
lea rdi, [rdx + rax]
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
sar rdi, 2
mov dword [rsp + 0x20], r15d
mov r9d, edi
call fcn.14013c6f0
test r15, r15
jne 0x14013ce8a
mov qword [rbp], rsi
cmp dword [rbx + 0x174], r14d
jne 0x14013cec0
test edi, edi
mov ecx, r14d
je 0x14013cec0
mov rax, rbp
nop
cmp dword [rax], r14d
je 0x14013ceb2
add ecx, 1
add rax, 4
cmp ecx, edi
jb 0x14013cea0
jmp 0x14013cec0
mov eax, r15d
shl eax, 0x15
add eax, ecx
mov dword [rbx + 0x174], eax
mov rax, qword [rbx + 0x180]
test rax, rax
jle 0x14013cef4
movzx esi, word [rbx + 0x58]
mov edi, dword [rbx + 0x1d8]
shl r15, 0x17
imul rsi, rax
mov rax, r15
cqo
idiv rdi
add rsi, rax
mov eax, dword [rbx + 0x134]
add rsi, rax
jmp 0x14013cf21
mov edi, dword [rbx + 0x1d8]
movzx ecx, word [rbx + 0x58]
shl r15, 0x17
mov rax, r15
imul rcx, qword [rbx + reloc.MFC80U.DLL_Ordinal_376]
cqo
idiv rdi
mov rsi, rax
mov eax, dword [rbx + 0x134]
sub rsi, rcx
add rsi, rax
mov rcx, qword [rbx + 0x30]
mov rax, r12
mov r8, rsi
cqo
idiv rdi
mov rdx, rbp
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x14013d02a
call fcn.140049470
lea r13, [0x14043e130]
xor edx, edx
mov rcx, r13
mov r8d, 0x80
mov r12, rax
call sub.ntdll.dll_memset
lea rcx, str...quickmovefat.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14013cf84
mov r8, r14
jmp 0x14013d003
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x60]
mov r8d, Ordinal_1604
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 0x14013cfc0
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 0x14013cff0
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 + 0x60]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r12, qword [rsp + 0x50]
jmp 0x14013d031
lea r13, [0x14043e130]
cmp dword [rbx + 0x148], 2
jne 0x14013d137
mov ecx, dword [rbx + 0x1d8]
mov r8d, dword [rbx + 0x13c]
mov rax, r12
cqo
add r8, rsi
idiv rcx
mov rcx, qword [rbx + 0x30]
mov rdx, rbp
mov r9, rax
call fcn.140146c00
test eax, eax
jne 0x14013d137
call fcn.140049470
xor edx, edx
mov r8d, 0x80
mov rcx, r13
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str...quickmovefat.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x14013d115
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x60]
mov r8d, 0x64d
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 0x14013d0e0
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 0x14013d101
mov r14, r13
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_write_sector.
mov r8, r14
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x60]
mov edx, 0x22
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
mov rax, qword [rsp + 0x58]
sub eax, dword [rsp + 0x40]
mov dword [rbx + 0x170], 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