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

Disassembly:
sub esp, 0xe8
push ebx
mov ebx, dword [esp + 0xf0]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov ebp, 1
je 0x499800
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov dword [esp + 0x24], eax
call fcn.0049d7d0
mov byte [esp + 0x14], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x2c]
push 0x40
push eax
push str.EraseTime
call fcn.00488810
add esp, 0x14
test eax, eax
jne 0x499321
mov ecx, 0x10
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x10]
push 0x40
push esi
call fcn.0049e500
add esp, 4
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.004b7b5f
push str.Erasing_media...
push 0xf1
call fcn.004a6ea0
push eax
push 0
call fcn.004a3640
mov edx, dword [esp + 0x120]
and esi, 0xff
push edx
push 0xffffffffffffffff
push esi
push 0
push ebx
call fcn.004a0490
add esp, 0x30
cmp esi, 0x14
jg 0x49967a
je 0x499534
cmp esi, 0x13
ja case.0x499691.25
xor eax, eax
mov al, byte [esi + 0x499b28]
jmp dword [eax*4 + 0x499b18]
mov esi, dword [esp + 0x100]
cmp esi, 1
jne 0x4993d6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x25]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
mov dword [esp + 0x10], 0
jne 0x4993ca
mov eax, 0x19
jmp 0x499409
cmp eax, 0xa
jae 0x499409
mov eax, 0xa
jmp 0x499409
mov eax, dword [esp + 0x26]
mov edx, dword [esp + 0x27]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov dword [esp + 0x10], 2
jne 0x4993ff
mov eax, 0x21c
jmp 0x499409
cmp eax, 0x78
jae 0x499409
mov eax, 0x78
mov ecx, dword [0x594e38]
test ecx, ecx
je 0x499419
push eax
call fcn.004a3550
cmp esi, 1
jne 0x499426
push 0x4b0
push esi
jmp 0x49942d
push 0xe10
push 0
push 1
push ebx
call fcn.00497e70
add esp, 0x10
test eax, eax
jne 0x49944b
push str.Error_erasing_media.
push 0xf3
jmp 0x499aca
push ebx
call fcn.00497ef0
add esp, 4
test eax, eax
jne 0x499a3e
push str.Error_verifying_blank_media.
push 0xf4
jmp 0x499aca
mov esi, dword [esp + 0x100]
cmp esi, 1
jne 0x4994ac
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2d]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
mov dword [esp + 0x10], 8
jne 0x4994a0
mov eax, 0x1e
jmp 0x4994df
cmp eax, 0xa
jae 0x4994df
mov eax, 0xa
jmp 0x4994df
mov eax, dword [esp + 0x2e]
mov edx, dword [esp + 0x2f]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov dword [esp + 0x10], 0xa
jne 0x4994d5
mov eax, 0x384
jmp 0x4994df
cmp eax, 0x78
jae 0x4994df
mov eax, 0x78
mov ecx, dword [0x594e38]
test ecx, ecx
je 0x4994ef
push eax
call fcn.004a3550
cmp esi, 1
jne 0x4994fc
push 0x4b0
push esi
jmp 0x499503
push 0xe10
push 0
push 1
push ebx
call fcn.00497e70
add esp, 0x10
test eax, eax
jne 0x49944b
push str.Error_erasing_media.
push 0xf3
jmp 0x499aca
push str.No_disc_in_the_drive
push 0x179
jmp 0x499aca
mov esi, dword [esp + 0x100]
cmp esi, 1
jne 0x499575
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x31]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
mov dword [esp + 0x10], 0xc
jne 0x499569
mov eax, 0xa
jmp 0x4995aa
cmp eax, 4
jae 0x4995aa
mov eax, 4
jmp 0x4995aa
mov eax, dword [esp + 0x32]
mov edx, dword [esp + 0x33]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov dword [esp + 0x10], 0xe
jne 0x49959e
mov eax, 0x960
jmp 0x4995aa
cmp eax, 0x12c
jae 0x4995aa
mov eax, 0x12c
mov ecx, dword [0x594e38]
test ecx, ecx
je 0x4995ba
push eax
call fcn.004a3550
cmp esi, 1
jne 0x499618
lea eax, [esp + 0x18]
push 0x10
push eax
push 0x800
push 0x800
push 0
push ebx
call fcn.00498fe0
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x4997d4
push esi
push ebx
call fcn.00497e10
add esp, 8
test eax, eax
je 0x499609
push 0x1e0
push ebx
call fcn.0049a4d0
add esp, 8
test eax, eax
jne 0x499a3e
push str.Error_erasing_media.
push 0xf3
jmp 0x4997c0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push ebx
call fcn.00498800
add esp, 0x14
test eax, eax
jne 0x499642
push str.Error_reading_capacity_information.
push 0x164
jmp 0x499aca
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0x1518
push 0x82
push eax
push 0
push 0
push ecx
push ebx
call fcn.00497cc0
add esp, 0x1c
test eax, eax
jne 0x499a3e
push str.Error_formatting_the_media.
push 0x106
jmp 0x499aca
add esi, 0xffffffea
cmp esi, 0xe9
ja case.0x499691.25
xor edx, edx
mov dl, byte [esi + 0x499b4c]
jmp dword [edx*4 + 0x499b3c]
mov edi, dword [esp + 0x100]
cmp edi, 1
jne 0x499712
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x29]
and esi, 0xff
and eax, 0xff
shl esi, 8
add esi, eax
mov dword [esp + 0x10], 4
jne 0x499706
mov esi, 0x78
mov ecx, dword [0x594e38]
test ecx, ecx
je 0x4996db
push esi
call fcn.004a3550
push 0x258
push 2
push 0
push 0
push 0x26
push 0xffffffffffffffff
push ebx
call fcn.00497cc0
add esp, 0x1c
test eax, eax
jne 0x499774
push str.Error_formatting_the_media.
push 0x106
jmp 0x499aca
cmp esi, 0x28
jae 0x4996cb
mov esi, 0x28
jmp 0x4996cb
mov esi, dword [esp + 0x2a]
mov ecx, dword [esp + 0x2b]
and esi, 0xff
and ecx, 0xff
shl esi, 8
add esi, ecx
mov dword [esp + 0x10], 6
jne 0x49973c
mov esi, 0x708
jmp 0x499749
cmp esi, 0x258
jae 0x499749
mov esi, 0x258
lea edx, [esp + 0x14]
push 0
push edx
push 0
push 0x26
push ebx
call fcn.00498800
add esp, 0x14
test eax, eax
jne 0x4996cb
push str.Error_reading_capacity_information.
push 0x164
jmp 0x499aca
cmp edi, 1
push 0x10
jne 0x499787
lea eax, [esp + 0x1c]
push eax
push 0x800
jmp 0x499791
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0x800
push 0
push ebx
call fcn.00498fe0
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x49980d
push 1
push ebx
call fcn.00497e10
add esp, 8
test eax, eax
jne 0x49980d
push str.Synchronizing_cache_failed.
push 0x165
call fcn.004a6ea0
push eax
push 1
call fcn.004a3640
add esp, 0x10
test ebp, ebp
jne 0x499800
mov ecx, dword [esp + 0x18]
push ecx
push 0x589
push str.Error_writing_data.
push 0x14a
call fcn.004a6ea0
add esp, 8
push eax
push str._s___d__08x_
push 1
call fcn.004a3640
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe8
ret
push 0x1e0
push ebx
call fcn.0049a4d0
add esp, 8
test eax, eax
jne 0x49982b
push str.Error_erasing_media.
push 0xf3
jmp 0x4997c0
push 0
push 2
push 1
push ebx
call fcn.004980b0
add esp, 0x10
test eax, eax
je 0x499854
push 0x1e0
push ebx
call fcn.0049a4d0
add esp, 8
test eax, eax
jne 0x499a3e
push str.Error_Closing_track.
push 0x166
jmp 0x4997c0
mov esi, dword [esp + 0x100]
cmp esi, 1
jne 0x4998a4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x35]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
mov dword [esp + 0x10], 0x10
jne 0x499898
mov eax, 0x1e
jmp 0x4998d9
cmp eax, 4
jae 0x4998d9
mov eax, 4
jmp 0x4998d9
mov eax, dword [esp + 0x36]
mov edx, dword [esp + 0x37]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov dword [esp + 0x10], 0x12
jne 0x4998cd
mov eax, 0xe10
jmp 0x4998d9
cmp eax, 0x12c
jae 0x4998d9
mov eax, 0x12c
mov ecx, dword [0x594e38]
test ecx, ecx
je 0x4998e9
push eax
call fcn.004a3550
lea eax, [esp + 0x64]
push 0x14
push eax
push 0x23
push 2
push ebx
call fcn.00498490
add esp, 0x14
test eax, eax
jne 0x499910
push str.Error_reading_capacity_information.
push 0x164
jmp 0x499aca
test byte [esp + 0x6e], 1
je 0x499979
test byte [esp + 0x70], 8
je 0x499979
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x31
push ebx
call fcn.00498800
add esp, 0x14
test eax, eax
jne 0x499948
push str.Error_reading_capacity_information.
push 0x164
jmp 0x499aca
push 0x258
push 2
push 0x800
push 0
push 0x31
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.00497cc0
add esp, 0x1c
test eax, eax
jne 0x4999b2
push str.Error_formatting_the_media.
push 0x106
jmp 0x499aca
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push 0x30
push ebx
call fcn.00498800
add esp, 0x14
test eax, eax
jne 0x4999a3
push str.Error_reading_capacity_information.
push 0x164
jmp 0x499aca
push 0x258
push 2
push 0
push 0
push 0x30
jmp 0x499958
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.00498950
add esp, 8
test eax, eax
jne 0x4999d3
push str.Error_reading_capacity_information.
push 0x164
jmp 0x499aca
cmp esi, 1
jne 0x4999e6
lea edx, [esp + 0x18]
push 0x20
push edx
push 0x800
jmp 0x499a0c
mov ecx, dword [0x594e38]
test ecx, ecx
je 0x499a00
push 1
push 2
call fcn.004d23b9
mov ecx, eax
call fcn.004d266d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x20
push eax
push ecx
push 0x800
push 0
push ebx
call fcn.00498fe0
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x4995f3
push 1
push ebx
call fcn.00497e10
add esp, 8
test eax, eax
jne 0x4995f3
jmp 0x4997b6
mov eax, dword [0x59ad60]
test eax, eax
jne 0x499a8e
test ebp, ebp
je 0x4997d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x20]
mov edx, eax
sub edx, esi
mov eax, 0x10624dd3
mul edx
mov eax, dword [esp + 0x10]
push 0
shr edx, 6
mov ecx, edx
push 0x40
shr ecx, 8
mov byte [esp + eax + 0x2c], cl
mov byte [esp + eax + 0x2d], dl
lea edx, [esp + 0x2c]
push edx
push str.EraseTime
call fcn.004888d0
add esp, 0x10
test ebp, ebp
je 0x4997d4
push str.Media_erased_successfully.
push 0xf2
call fcn.004a6ea0
push eax
push 0
call fcn.004a3640
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret
push str.Unknown_disc_type_in_the_drive.
push 0x18b
call fcn.004a6ea0
push eax
push 1
call fcn.004a3640
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret
lea eax, [esp + 0x78]
push eax
push str._s_can_not_be_erased.
push 0x167
call fcn.004a6ea0
add esp, 8
push eax
push 1
call fcn.004a3640
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret