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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov eax, 0x45b70c
call fcn.0044d10c
mov byte [ebp - 0x76], 1
mov word [ebp - 0x64], 8
lea eax, [ebp - 4]
call fcn.00404f0c
inc dword [ebp - 0x58]
mov word [ebp - 0x64], 0x14
mov byte [ebp - 0x75], 0
mov word [ebp - 0x64], 0x20
xor edx, edx
mov word [ebp - 0x8a], dx
movzx eax, dx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x84], eax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x94], edx
mov ecx, dword [ebp + 0x20]
add ecx, 0x4200
mov dword [ebp - 0x90], ecx
mov word [ebp - 0x7a], 0
mov word [ebp - 0x7c], 0x1000
mov eax, dword [ebp + 0x1c]
mov dx, word [eax + 0x34]
and dx, 0xffff
mov word [ebp - 0x7e], dx
mov ecx, dword [ebp + 0x1c]
mov al, byte [ecx + 0x40]
and al, 0xff
mov byte [ebp - 0x77], al
cmp word [ebp - 0x7e], 0
je 0x409ad4
mov word [ebp - 0x64], 0x2c
lea eax, [ebp - 0x38]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
movzx eax, word [ebp - 0x7c]
mov edx, 4
call fcn.00445098
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x28]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
movzx eax, word [ebp - 0x7a]
mov edx, 4
call fcn.00445098
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x18]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
xor eax, eax
mov al, byte [ebp - 0x77]
mov edx, 4
call fcn.00445098
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 8]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
movzx eax, word [ebp - 0x7e]
mov edx, 4
call fcn.00445098
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0xc]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
mov eax, str._nEraseAll_Mode_:_n__BlkNum_PreCMD__0x
pop edx
call fcn.004567e4
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00404f0c
push eax
inc dword [ebp - 0x58]
mov edx, 0x459c63
lea eax, [ebp - 0x10]
call fcn.00456598
inc dword [ebp - 0x58]
lea edx, [ebp - 0x10]
pop ecx
pop eax
call fcn.004566b0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
pop eax
pop edx
call fcn.004566b0
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x24]
call fcn.00404f0c
push eax
inc dword [ebp - 0x58]
mov edx, str._n__LastSLCBlock__0x
lea eax, [ebp - 0x20]
call fcn.00456598
inc dword [ebp - 0x58]
lea edx, [ebp - 0x20]
pop ecx
pop eax
call fcn.004566b0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
pop eax
pop edx
call fcn.004566b0
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x34]
call fcn.00404f0c
push eax
inc dword [ebp - 0x58]
mov edx, str._n__FirstTLCBlock__0x
lea eax, [ebp - 0x30]
call fcn.00456598
inc dword [ebp - 0x58]
lea edx, [ebp - 0x30]
pop ecx
pop eax
call fcn.004566b0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x3c]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
pop eax
pop edx
call fcn.004566b0
lea edx, [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00456688
dec dword [ebp - 0x58]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00456658
push dword [ebp - 4]
lea ecx, [ebp - 0x94]
push ecx
call fcn.0040cbfc
add esp, 8
mov byte [ebp - 0x76], al
cmp byte [ebp - 0x76], 0
jne 0x40998f
mov al, byte [ebp - 0x76]
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00456658
pop eax
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
jmp 0x409b3c
mov cx, word [ebp - 0x7e]
push ecx
push dword [ebp + 0x20]
mov al, byte [ebp - 0x77]
push eax
mov dx, word [ebp - 0x7c]
push edx
mov cx, word [ebp - 0x7a]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004163fc
add esp, 0x24
mov byte [ebp - 0x75], al
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x84]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov word [ebp - 0x8a], ax
mov word [ebp - 0x64], 0x38
lea eax, [ebp - 0x40]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
movzx eax, word [ebp - 0x8a]
mov edx, 8
call fcn.00445098
lea ecx, [ebp - 0x40]
push ecx
lea eax, [ebp - 0x44]
call fcn.00404f0c
mov ecx, eax
inc dword [ebp - 0x58]
mov eax, str.EraseAll_Total_Time__0x
pop edx
call fcn.004567e4
lea ecx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x4c]
call fcn.00404f0c
push eax
inc dword [ebp - 0x58]
mov edx, 0x459cb4
lea eax, [ebp - 0x48]
call fcn.00456598
inc dword [ebp - 0x58]
lea edx, [ebp - 0x48]
pop ecx
pop eax
call fcn.004566b0
lea edx, [ebp - 0x4c]
lea eax, [ebp - 4]
call fcn.00456688
dec dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00456658
dec dword [ebp - 0x58]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00456658
push dword [ebp - 4]
lea ecx, [ebp - 0x94]
push ecx
call fcn.0040cbfc
add esp, 8
mov byte [ebp - 0x76], al
cmp byte [ebp - 0x76], 0
jne 0x409ad8
mov al, byte [ebp - 0x76]
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00456658
pop eax
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
jmp 0x409b3c
mov byte [ebp - 0x75], 1
mov word [ebp - 0x64], 0x14
jmp 0x409b1d
mov al, byte [ebp - 0x75]
push eax
dec dword [ebp - 0x58]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00456658
pop eax
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret