Function at 0x57a4fc
Capabilities:
Check for time delay via gettickcount
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040403c
xor eax, eax
push ebp
push 0x57aa45
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x22], 0
xor esi, esi
mov dl, 1
mov eax, dword [0x40f8cc]
call fcn.00402f78
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x57aa20
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x57a6d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
call fcn.004138a8
cmp edx, 0
jne 0x57a575
cmp eax, 0
jbe 0x57a5ca
jmp 0x57a577
jle 0x57a5ca
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
call fcn.00413894
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1e8]
mov eax, ebx
call fcn.004138a8
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00413bf0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00413894
mov eax, dword [ebp - 0xc]
call fcn.004138a8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x110], eax
mov dword [ecx + 0x114], edx
jmp 0x57a5e1
mov eax, dword [ebp - 4]
mov dword [eax + 0x110], 0
mov dword [eax + 0x114], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1e8], 0
je 0x57a5fa
mov eax, dword [ebp - 4]
add eax, 0x1e8
call fcn.00577364
mov eax, dword [ebp - 8]
call fcn.00403e88
test eax, eax
jle 0x57a643
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00403db0
lea eax, [ebp - 0x28]
mov edx, 0x57aa5c
call fcn.00403e90
mov eax, dword [ebp - 0x28]
call fcn.0040404c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x57a643
mov dword [ebp - 0x18], 0x40000
mov dword [ebp - 0x14], 0
jmp 0x57a651
mov dword [ebp - 0x18], 0x20000
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x104], 0
jne 0x57a668
cmp dword [eax + 0x100], 0
jbe 0x57a69e
jmp 0x57a66a
jle 0x57a69e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x104]
mov eax, dword [eax + 0x100]
cmp edx, dword [ebp - 0x14]
jne 0x57a685
cmp eax, dword [ebp - 0x18]
jae 0x57a69e
jmp 0x57a687
jge 0x57a69e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x100]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x104]
mov dword [ebp - 0x14], edx
jmp 0x57a6aa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
push 0x22
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4a0678]
call fcn.004a0ff4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57a72c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1e8]
mov eax, ebx
call fcn.004138a8
push edx
push eax
mov eax, ebx
call fcn.00413894
mov eax, dword [ebp - 0xc]
call fcn.004138a8
cmp edx, 0
jne 0x57a759
cmp eax, 0
jbe 0x57a78c
jmp 0x57a75b
jle 0x57a78c
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00413894
mov eax, dword [ebp - 0xc]
call fcn.004138a8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov edx, dword [ebp - 0xc]
call fcn.00413bf0
mov eax, dword [ebp - 0xc]
call fcn.00414028
jmp 0x57a7a3
mov eax, dword [ebp - 4]
mov dword [eax + 0x110], 0
mov dword [eax + 0x114], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a8], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c1], 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0057ad24
mov eax, dword [ebp - 4]
mov byte [eax + 0xfc], 1
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
push eax
call sub.user32.dll_PostMessageA
jmp 0x57a980
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19a], 0
je 0x57a818
mov dx, 2
mov eax, dword [ebp - 4]
call fcn.0057c848
jmp 0x57a824
mov eax, dword [0x585d88]
mov eax, dword [eax]
call fcn.0043b2f8
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x57a8a9
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x114]
mov eax, dword [eax + 0x110]
cmp edx, dword [ebp - 0x1c]
jne 0x57a850
cmp eax, dword [ebp - 0x20]
je 0x57a8a9
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x110]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x114]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x57a879
call fcn.0057dbac
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1a8]
cmp eax, 0xea60
jbe 0x57a8a9
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov byte [eax + 0x36], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x57a8f6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x114]
mov eax, dword [eax + 0x110]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x104]
jne 0x57a8f6
cmp eax, dword [ecx + 0x100]
jne 0x57a8f6
test esi, esi
jne 0x57a8e4
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x57a8f6
call sub.kernel32.dll_GetTickCount
sub eax, esi
cmp eax, 0x2710
ja 0x57a9a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp word [eax + 0x6e], 0
je 0x57a920
mov edi, eax
lea edx, [ebp - 0x21]
mov eax, dword [edi + 0x70]
call dword [edi + 0x6c]
cmp byte [ebp - 0x21], 0
je 0x57a920
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x21]
mov byte [eax + 0x1ad], dl
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19a], 0
je 0x57a980
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1a4]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov ecx, eax
test ecx, ecx
jne 0x57a94e
mov ecx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x188]
xor edx, edx
div ecx
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x19c]
jae 0x57a980
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x57a9a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ad], 0
jne 0x57a9a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c1], 0
jne 0x57a7fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57aa27
mov eax, dword [ebp - 4]
call fcn.0057ad7c
cmp dword [ebp - 0xc], 0
je 0x57a9cb
lea eax, [ebp - 0xc]
call fcn.00577364
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1e8], 0
je 0x57a9e4
mov eax, dword [ebp - 4]
add eax, 0x1e8
call fcn.00577364
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c1], 0
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1ad]
or al, byte [ebp - 0x22]
je 0x57aa1f
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ad], 0
mov ecx, dword [0x585ebc]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x576e54]
call fcn.0040bb58
call fcn.00403680
ret