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

Disassembly:
sub esp, 0xec
push ebx
push ebp
mov ebp, dword [esp + 0xf8]
push esi
xor esi, esi
push edi
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x14], esi
cmp ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 1
je 0x50d7d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov dword [esp + 0x28], eax
call fcn.00512430
mov byte [esp + 0x14], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x30]
push 0x40
push eax
push str.EraseTime
call fcn.004f62d0
add esp, 0x14
test eax, eax
jne 0x50d307
mov ecx, 0x10
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x10]
push 0x40
push esi
call fcn.00513290
add esp, 4
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.00540068
push str.Erasing_media...
push 0xf1
call fcn.0051faa0
push eax
push 0
push ebp
call fcn.0051a630
mov edx, dword [esp + 0x128]
and esi, 0xff
push edx
push 0xffffffffffffffff
push esi
push 0
push ebp
call fcn.00515800
add esp, 0x34
cmp esi, 0x16
jg 0x50d839
je 0x50d666
cmp esi, 0x14
ja case.0x50d84f.41
xor eax, eax
mov al, byte [esi + 0x50db2c]
jmp dword [eax*4 + 0x50db18]
mov esi, dword [esp + 0x104]
cmp esi, 1
jne 0x50d3c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x29]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
mov dword [esp + 0x10], 0
jne 0x50d3b4
mov eax, 0x19
jmp 0x50d3f3
cmp eax, 0xa
jae 0x50d3f3
mov eax, 0xa
jmp 0x50d3f3
mov eax, dword [esp + 0x2a]
mov edx, dword [esp + 0x2b]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov dword [esp + 0x10], 2
jne 0x50d3e9
mov eax, 0x21c
jmp 0x50d3f3
cmp eax, 0x78
jae 0x50d3f3
mov eax, 0x78
mov ecx, dword [0x7d09b0]
test ecx, ecx
je 0x50d403
push eax
call fcn.0051a490
cmp esi, 1
jne 0x50d410
push 0x4b0
push esi
jmp 0x50d417
push 0xe10
push 0
push 1
push ebx
call fcn.0050bc80
add esp, 0x10
test eax, eax
jne 0x50d435
push str.Error_erasing_media.
push 0xf3
jmp 0x50dac8
push ebx
call fcn.0050bd00
add esp, 4
test eax, eax
jne 0x50da33
push str.Error_verifying_blank_media.
push 0xf4
jmp 0x50dac8
mov esi, dword [esp + 0x104]
cmp esi, 1
jne 0x50d496
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], 8
jne 0x50d48a
mov eax, 0x1e
jmp 0x50d4c9
cmp eax, 0xa
jae 0x50d4c9
mov eax, 0xa
jmp 0x50d4c9
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], 0xa
jne 0x50d4bf
mov eax, 0x384
jmp 0x50d4c9
cmp eax, 0x78
jae 0x50d4c9
mov eax, 0x78
mov ecx, dword [0x7d09b0]
test ecx, ecx
je 0x50d4d9
push eax
call fcn.0051a490
cmp esi, 1
jne 0x50d4e6
push 0x4b0
push esi
jmp 0x50d4ed
push 0xe10
push 0
push 1
push ebx
call fcn.0050bc80
add esp, 0x10
test eax, eax
jne 0x50d435
push str.Error_erasing_media.
push 0xf3
jmp 0x50dac8
mov esi, dword [esp + 0x104]
cmp esi, 1
jne 0x50d550
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], 0xc
jne 0x50d544
mov eax, 0xa
jmp 0x50d585
cmp eax, 4
jae 0x50d585
mov eax, 4
jmp 0x50d585
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], 0xe
jne 0x50d579
mov eax, 0x960
jmp 0x50d585
cmp eax, 0x12c
jae 0x50d585
mov eax, 0x12c
mov ecx, dword [0x7d09b0]
test ecx, ecx
je 0x50d595
push eax
call fcn.0051a490
cmp esi, 1
jne 0x50d5f5
lea eax, [esp + 0x1c]
push 0x10
push eax
push 0x800
push 0x800
push 0
push ebp
call fcn.0050cfa0
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x50d7a9
push esi
push ebx
call fcn.0050bc20
add esp, 8
test eax, eax
je 0x50d5e6
push 0x1e0
push ebx
call fcn.0050ea90
add esp, 8
test eax, eax
jne 0x50da33
push str.Error_erasing_media.
push 0xf3
jmp 0x50d790
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push ebx
call fcn.0050c7c0
add esp, 0x14
test eax, eax
jne 0x50d61f
push str.Error_reading_capacity_information.
push 0x164
jmp 0x50dac8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0x1518
push 0x82
push eax
push 0
push 0
push ecx
push ebx
call fcn.0050bad0
add esp, 0x1c
test eax, eax
jne 0x50da33
push str.Error_formatting_the_media.
push 0x106
jmp 0x50dac8
push str.There_is_no_disc_in_the_drive.
push 0x179
jmp 0x50dac8
mov edi, dword [esp + 0x104]
cmp edi, 1
jne 0x50d6e1
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x2d]
and esi, 0xff
and edx, 0xff
shl esi, 8
add esi, edx
mov dword [esp + 0x10], 4
jne 0x50d6d5
mov esi, 0x78
mov ecx, dword [0x7d09b0]
test ecx, ecx
je 0x50d6aa
push esi
call fcn.0051a490
push 0x258
push 2
push 0
push 0
push 0x26
push 0xffffffffffffffff
push ebx
call fcn.0050bad0
add esp, 0x1c
test eax, eax
jne 0x50d742
push str.Error_formatting_the_media.
push 0x106
jmp 0x50dac8
cmp esi, 0x28
jae 0x50d69a
mov esi, 0x28
jmp 0x50d69a
mov esi, dword [esp + 0x2e]
mov eax, dword [esp + 0x2f]
and esi, 0xff
and eax, 0xff
shl esi, 8
add esi, eax
mov dword [esp + 0x10], 6
jne 0x50d70a
mov esi, 0x708
jmp 0x50d717
cmp esi, 0x258
jae 0x50d717
mov esi, 0x258
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0x26
push ebx
call fcn.0050c7c0
add esp, 0x14
test eax, eax
jne 0x50d69a
push str.Error_reading_capacity_information.
push 0x164
jmp 0x50dac8
cmp edi, 1
push 0x10
jne 0x50d755
lea edx, [esp + 0x20]
push edx
push 0x800
jmp 0x50d75f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
push 0x800
push 0
push ebp
call fcn.0050cfa0
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x50d7e3
push 1
push ebx
call fcn.0050bc20
add esp, 8
test eax, eax
jne 0x50d7e3
push str.Synchronizing_cache_failed.
push 0x165
call fcn.0051faa0
push eax
push 1
push ebp
call fcn.0051a630
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
jne 0x50d7d6
mov ecx, dword [esp + 0x1c]
push ecx
push 0x612
push str.Error_writing_data.
push 0x14a
call fcn.0051faa0
add esp, 8
push eax
push str._s___d__08x_
push 1
push ebp
call fcn.0051a630
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xec
ret
push 0x1e0
push ebx
call fcn.0050ea90
add esp, 8
test eax, eax
jne 0x50d801
push str.Error_erasing_media.
push 0xf3
jmp 0x50d790
push 0
push 2
push 1
push ebx
call fcn.0050bec0
add esp, 0x10
test eax, eax
je 0x50d82a
push 0x1e0
push ebx
call fcn.0050ea90
add esp, 8
test eax, eax
jne 0x50da33
push str.Error_closing_track.
push 0x166
jmp 0x50d790
lea eax, [esi - 0x27]
cmp eax, 0xd8
ja case.0x50d84f.41
xor edx, edx
mov dl, byte [eax + 0x50db50]
jmp dword [edx*4 + 0x50db44]
mov esi, dword [esp + 0x104]
cmp esi, 1
jne 0x50d897
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x39]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
mov dword [esp + 0x10], 0x10
jne 0x50d88b
mov eax, 0x1e
jmp 0x50d8cc
cmp eax, 4
jae 0x50d8cc
mov eax, 4
jmp 0x50d8cc
mov eax, dword [esp + 0x3a]
mov edx, dword [esp + 0x3b]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov dword [esp + 0x10], 0x12
jne 0x50d8c0
mov eax, 0xe10
jmp 0x50d8cc
cmp eax, 0x12c
jae 0x50d8cc
mov eax, 0x12c
mov ecx, dword [0x7d09b0]
test ecx, ecx
je 0x50d8dc
push eax
call fcn.0051a490
lea eax, [esp + 0x68]
push 0x14
push eax
push 0x23
push 2
push ebx
call fcn.0050c450
add esp, 0x14
test eax, eax
jne 0x50d903
push str.Error_reading_capacity_information.
push 0x164
jmp 0x50dac8
test byte [esp + 0x72], 1
je 0x50d96c
test byte [esp + 0x74], 8
je 0x50d96c
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x31
push ebx
call fcn.0050c7c0
add esp, 0x14
test eax, eax
jne 0x50d93b
push str.Error_reading_capacity_information.
push 0x164
jmp 0x50dac8
push 0x258
push 2
push 0x800
push 0
push 0x31
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.0050bad0
add esp, 0x1c
test eax, eax
jne 0x50d9a5
push str.Error_formatting_the_media.
push 0x106
jmp 0x50dac8
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push 0x30
push ebx
call fcn.0050c7c0
add esp, 0x14
test eax, eax
jne 0x50d996
push str.Error_reading_capacity_information.
push 0x164
jmp 0x50dac8
push 0x258
push 2
push 0
push 0
push 0x30
jmp 0x50d94b
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.0050c910
add esp, 8
test eax, eax
jne 0x50d9c6
push str.Error_reading_capacity_information.
push 0x164
jmp 0x50dac8
cmp esi, 1
jne 0x50d9d9
lea edx, [esp + 0x1c]
push 0x20
push edx
push 0x800
jmp 0x50d9ff
mov ecx, dword [0x7d09b0]
test ecx, ecx
je 0x50d9f3
push 1
push 2
call fcn.0055f021
mov ecx, eax
call fcn.0055f2d5
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x20
push eax
push ecx
push 0x800
push 0
push ebp
call fcn.0050cfa0
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x50d5d0
push 1
push ebx
call fcn.0050bc20
add esp, 8
test eax, eax
jne 0x50d5d0
jmp 0x50d786
mov eax, dword [0x81771c]
test eax, eax
jne 0x50da87
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50d7a9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x24]
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 + 0x30], cl
mov byte [esp + eax + 0x31], dl
lea edx, [esp + 0x30]
push edx
push str.EraseTime
call fcn.004f6390
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50d7a9
push str.Media_erased_successfully.
push 0xf2
call fcn.0051faa0
push eax
push 0
push ebp
call fcn.0051a630
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret
push str.Unknown_disc_type_in_the_drive.
push 0x18b
call fcn.0051faa0
push eax
push 1
push ebp
call fcn.0051a630
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret
lea eax, [esp + 0x7c]
push eax
push str._s_can_not_be_erased.
push 0x167
call fcn.0051faa0
add esp, 8
push eax
push 1
push ebp
call fcn.0051a630
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret