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

Disassembly:
push ebp
lea ebp, [esp - 0xd0]
sub esp, 0xd0
push 0xffffffffffffffff
push 0x1005071e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10063790]
xor eax, ebp
mov dword [ebp + 0xcc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
test byte [0x10065ac4], 1
mov eax, dword [ebp + 0xdc]
mov dword [ebp - 0x30], eax
jne 0x10012537
or dword [0x10065ac4], 1
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
lea ecx, [ebp]
mov dword [0x10065f08], 0x3f
call fcn.10028af0
xor ebx, ebx
lea ecx, [ebp + 0xa0]
mov dword [ebp - 4], ebx
call fcn.1002f490
push 0x218
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
call fcn.1003c285
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x10012586
call fcn.1003a420
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x1001258b
mov dword [ebp - 0x20], ebx
mov esi, ebx
cmp esi, ebx
mov dword [ebp - 4], 1
jne 0x10012607
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x10065ac4], 1
jne 0x100125c0
or dword [0x10065ac4], 1
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
push str.Cannot_retrieve_ISTXml_interface.
mov ebx, 0x10065ac8
call fcn.1001e430
add esp, 4
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], 0
call fcn.1002f500
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.100286b0
mov eax, 8
jmp 0x100129d6
mov edx, dword [esi]
mov eax, dword [edx + 4]
push str.__xml_version_1.0__encoding_utf_16_____table__
mov ecx, esi
call eax
mov edx, dword [esi]
mov edi, eax
cmp edi, ebx
mov ecx, esi
je 0x10012684
mov eax, dword [edx + 0x1c]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x10065ac4], 1
jne 0x1001264d
or dword [0x10065ac4], 1
call fcn.1001db00
push 0x10051230
call fcn.1003c413
add esp, 4
push str.ISTXml::LoadFromText.
mov ebx, 0x10065ac8
call fcn.1001e430
add esp, 4
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], 0
call fcn.1002f500
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.100286b0
mov eax, edi
jmp 0x100129d6
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x14]
push eax
call edx
mov edi, eax
cmp edi, ebx
je 0x100126dc
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.ISTXml::GetRootNode.
call fcn.100020c0
mov ebx, eax
call fcn.1001e430
add esp, 4
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], 0
call fcn.1002f500
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.100286b0
mov eax, edi
jmp 0x100129d6
mov edi, dword [ebp + 0xd8]
push edi
lea ecx, [ebp]
mov dword [ebp + 0x70], ebx
call fcn.10028740
test eax, eax
jne 0x1001273d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0xa0]
call fcn.1002f660
mov eax, dword [ebp + 0xc8]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push str.CSTDisk::Open__u_.
call fcn.100020c0
mov ebx, eax
call fcn.1001e430
add esp, 8
jmp 0x100129b6
mov ecx, dword [ebp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ecx
push 0x40
call edi
cmp eax, ebx
mov dword [ebp - 4], 1
jne 0x100127b5
lea ecx, [ebp]
call fcn.10027fb0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pEmpty
call fcn.100020c0
mov ebx, eax
call fcn.1001e430
add esp, 4
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], 0
call fcn.1002f500
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.100286b0
mov eax, 8
jmp 0x100129d6
mov ecx, dword [ebp + 0x38]
push ecx
push 0x40
call edi
cmp eax, ebx
mov dword [ebp - 4], 1
jne 0x100127f2
lea ecx, [ebp]
call fcn.10027fb0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pSector
jmp 0x1001277e
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x4c]
push ecx
mov ecx, dword [ebp + 0x48]
push edx
push eax
push ecx
call fcn.1003db20
mov ecx, dword [ebp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x38]
push ecx
push edx
push eax
call fcn.1003db20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.Start_Disk_scan.
mov dword [ebp - 0x24], eax
call fcn.100020c0
call fcn.1001e660
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x44]
add esp, 4
push edx
mov edx, dword [ebp + 0x40]
push eax
push ecx
push edx
call fcn.1003db20
mov esi, edx
cmp esi, dword [ebp + 0x24]
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jg 0x10012956
jl 0x10012870
cmp edi, dword [ebp + 0x20]
jae 0x10012956
lea ebx, [ebx]
mov ebx, edi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, 0x15f90
ja 0x10012956
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
lea edx, [ebp - 0x1c]
lea ecx, [ebp]
call fcn.10015b00
add esp, 0xc
test eax, eax
je 0x10012956
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
mov esi, dword [ebp - 0x18]
jne 0x100128d2
cmp esi, 2
jg 0x10012956
mov edi, dword [ebp - 0x1c]
jl 0x100128d5
cmp edi, 0x80000000
ja 0x10012956
jmp 0x100128d5
mov edi, dword [ebp - 0x1c]
cmp ebx, edi
jne 0x10012942
cmp dword [ebp - 0x3c], esi
jne 0x10012942
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
push ecx
push ebx
push esi
push edi
call fcn.1003e0e0
mov ecx, dword [ebp - 0x28]
push ecx
add eax, 1
push ebx
adc edx, 0
push edx
push eax
call fcn.1003db20
push 0
push 0x100000
push esi
push edi
mov dword [ebp - 0x38], eax
mov ebx, edx
call fcn.1003e0e0
push 0
add eax, 1
push 0x100000
adc edx, 0
push edx
push eax
call fcn.1003db20
cmp edx, ebx
jg 0x10012937
jl 0x10012931
cmp eax, dword [ebp - 0x38]
jae 0x10012937
mov edi, eax
mov esi, edx
jmp 0x1001293c
mov edi, dword [ebp - 0x38]
mov esi, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
cmp esi, dword [ebp + 0x24]
jl 0x10012870
jg 0x10012956
cmp edi, dword [ebp + 0x20]
jb 0x10012870
push str.End_Disk_scan.
call fcn.100020c0
call fcn.1001e660
add esp, 4
lea ecx, [ebp]
call fcn.10027fb0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x4c]
call eax
mov edi, dword [ebp - 0x20]
mov edx, dword [edi]
mov eax, dword [ebp - 0x30]
mov edx, dword [edx + 0x10]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
neg esi
sbb esi, esi
and esi, 0x7fe1fffd
add esi, 0x801e0003
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], 0
call fcn.1002f500
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.100286b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xcc]
xor ecx, ebp
call fcn.1003c13d
add ebp, 0xd0
mov esp, ebp
pop ebp
ret