Function at 0x5d1116
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sub esp, 0x30
push 0x80
mov eax, 0x62064a
call fcn.00579aed
mov esi, ecx
mov dword [ebp + 0x20], esi
push dword [ebp + 0x3c]
call fcn.005c51d4
mov eax, dword [ebp + 0x5c]
xor ebx, ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x60]
mov ecx, 0x6e8660
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Ghost::Disk::DiskDriveNormal.1.0
mov dword [esi + 4], vtable.Ghost::Disk::DiskDriveNormal.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], eax
call fcn.0041c609
mov ecx, eax
call fcn.0054a926
lea ecx, [esi + 0x54]
mov byte [esi + 0x50], al
mov byte [esi + 0x53], bl
call fcn.0042b3ee
lea ecx, [esi + 0x74]
mov byte [esi + 0x70], bl
call fcn.0042b3ee
mov eax, dword [ebp + 0x64]
mov dword [esi + 0x98], eax
mov eax, dword [ebp + 0x68]
lea edi, [esi + 0xa0]
mov dword [esi + 0x9c], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea eax, [esi + 0xb0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
push dword [ebp + 0x44]
lea ecx, [esi + 0xcc]
call fcn.005c6504
push dword [ebp + 0x48]
lea ecx, [esi + 0xd4]
call fcn.005c6504
push dword [ebp + 0x54]
lea ecx, [esi + 0xdc]
call fcn.005c6504
push dword [ebp + 0x58]
lea ecx, [esi + 0xe4]
call fcn.005c6504
mov byte [ebp - 4], 8
call fcn.00520e29
mov dword [esi + 0xec], eax
or eax, 0xffffffff
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], eax
lea eax, [esi + 0x108]
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
push str.constructor
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
push dword [0x6d5048]
lea ecx, [ebp + 0x1c]
call fcn.0056862d
cmp byte [ebp + 0x6c], bl
mov byte [ebp - 4], 0xa
je 0x5d1268
xor eax, eax
inc eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], eax
mov ecx, dword [ebp + 0x40]
mov byte [esi + 0x52], bl
mov dword [ebp + 0x6c], ebx
call fcn.005c6533
test eax, eax
jbe 0x5d13c4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x40]
mov byte [ebp - 4], 0xb
call fcn.005ce37d
push eax
lea ecx, [ebp - 0x68]
call fcn.005c691f
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp al, bl
mov byte [ebp - 0x48], al
je 0x5d12eb
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp al, bl
mov byte [ebp - 0x47], al
je 0x5d12eb
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0xb0]
call fcn.005c6f8b
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x18], bl
call fcn.005d0ceb
cmp byte [esi + 0x53], bl
jne 0x5d1351
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x80]
test al, al
je 0x5d1351
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
lea edx, [ebp]
push edx
call dword [eax + 0x84]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0xc
call fcn.00415271
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0xb
call fcn.00415386
mov byte [esi + 0x53], 1
cmp byte [esi + 0x70], bl
jne 0x5d1391
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x78]
test al, al
je 0x5d1391
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
lea edx, [ebp]
push edx
call dword [eax + 0x7c]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0xd
call fcn.00415271
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0xb
call fcn.00415386
mov byte [esi + 0x70], 1
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0xa4]
test al, al
je 0x5d13a4
mov byte [esi + 0x52], 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.005cf04d
mov ecx, dword [ebp + 0x40]
inc dword [ebp + 0x6c]
call fcn.005c6533
cmp dword [ebp + 0x6c], eax
jb 0x5d127e
mov byte [ebp + 0x6f], bl
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0x40]
call fcn.005c6533
cmp dword [ebp + 0x68], eax
jae 0x5d151e
push 2
mov ecx, esi
call fcn.005ced22
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
cmp byte [esi + 0x52], bl
mov byte [ebp - 4], 0xe
jne 0x5d1425
push eax
mov ecx, edi
call fcn.005ce35c
mov ecx, dword [eax]
mov eax, dword [ecx]
lea edx, [ebp + 0x2c]
push edx
call dword [eax + 0xa8]
push eax
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xf
call fcn.005122b3
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 0xe
call fcn.00419296
cmp dword [ebp + 0x5c], ebx
sete byte [ebp + 0x6f]
cmp byte [ebp + 0x6f], bl
je 0x5d1451
mov eax, dword [ebp + 0x64]
push eax
mov ecx, edi
mov dword [esi + 0xc8], eax
call fcn.005ce35c
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], ebx
jmp 0x5d1509
lea eax, [ebp + 0x3f]
push eax
push 2
push dword [0x6d5048]
mov byte [ebp + 0x3f], bl
call fcn.00565c29
mov ecx, eax
call fcn.00565415
cmp eax, ebx
mov dword [ebp + 0x44], eax
je 0x5d14bd
lea ecx, [ebp + 0x48]
call fcn.00565d8e
push 0xa
lea eax, [ebp + 0x5c]
push eax
push str.Disk_error_n
push dword [ebp + 0x44]
mov byte [ebp - 4], 0x10
call fcn.00428051
pop ecx
pop ecx
push eax
call fcn.0056a932
pop ecx
pop ecx
push eax
call fcn.0042818f
cmp byte [ebp + 0x3f], bl
pop ecx
pop ecx
je 0x5d14b1
mov ecx, dword [ebp + 0x44]
call fcn.00427f62
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xe
call fcn.005651a9
push dword [ebp + 0x64]
mov ecx, edi
call fcn.005ce35c
lea ecx, [ebp + 0x5c]
add eax, 0x48
push ecx
mov ecx, eax
call fcn.005122b3
push dword [ebp + 0x64]
mov ecx, edi
call fcn.005ce35c
push dword [ebp + 0x64]
mov dword [eax + 0x38], 1
mov ecx, edi
mov dword [eax + 0x3c], ebx
call fcn.005ce35c
inc dword [ebp + 0x68]
mov byte [eax + 0x50], 1
mov ecx, dword [esi + 0xcc]
cmp ecx, ebx
je 0x5d1509
mov eax, dword [ecx]
call dword [eax + 0x68]
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xa
call fcn.00419296
cmp byte [ebp + 0x6f], bl
je 0x5d13ca
cmp byte [ebp + 0x6f], bl
push ebx
jne 0x5d155d
mov ecx, edi
call fcn.005ce35c
add eax, 0x48
push eax
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp + 0x5c], str...DiskDriveNormal.cpp
mov dword [ebp + 0x60], 0xee
call fcn.005227dc
push 0x66dddc
lea eax, [ebp - 0x8c]
push eax
call fcn.00579606
mov ecx, esi
call fcn.005ced22
push 1
mov ecx, esi
mov dword [esi + 0xc0], eax
call fcn.005ced22
mov dword [esi + 0xc4], eax
push dword [esi + 0xc8]
mov ecx, edi
call fcn.005ce35c
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [esi + 0x52], bl
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
jne 0x5d1686
push eax
mov byte [ebp - 4], 0x11
mov dword [ebp + 0x6c], eax
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.0047c3bb
push ebx
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.005ced22
push eax
mov ecx, edi
call fcn.005ce35c
push eax
lea ecx, [ebp + 0x5c]
call fcn.005c6504
push dword [ebp + 0x24]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx]
push ebx
push 1
push ebx
push ebx
mov byte [ebp - 4], 0x13
call dword [eax + 0x24]
push dword [ebp + 0x24]
mov ecx, esi
call fcn.005ce67e
push dword [ebp + 0x6c]
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp + 0x2c]
call fcn.0047c3bb
push 1
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.005ced22
push eax
mov ecx, edi
call fcn.005ce35c
push eax
lea ecx, [ebp + 0x5c]
call fcn.005c691f
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx]
push ebx
push 1
push ebx
push ebx
call dword [eax + 0x24]
push dword [ebp + 0x6c]
push dword [ebp + 0x2c]
push dword [ebp + 0x24]
call fcn.0057c27c
add esp, 0xc
test eax, eax
je 0x5d164f
mov eax, dword [esi + 0x11c]
mov dword [esi + 0x118], eax
lea ecx, [ebp + 0x2c]
call fcn.0047c3ea
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x12
call fcn.005c6546
lea ecx, [ebp + 0x24]
call fcn.0047c3ea
mov dword [ebp - 4], 0xa
jmp 0x5d1686
lea ecx, [esi + 0xa0]
mov byte [esi + 0x51], bl
mov dword [ebp + 0x6c], ebx
call fcn.005ce30c
test eax, eax
jbe 0x5d1740
push dword [ebp + 0x6c]
lea ecx, [esi + 0xa0]
call fcn.005ce35c
push eax
lea ecx, [ebp + 0x2c]
call fcn.005c6504
mov edi, dword [ebp + 0x2c]
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 0x16
call dword [eax + 8]
cmp eax, dword [esi + 0x30]
jne 0x5d170b
cmp edx, dword [esi + 0x34]
jne 0x5d170b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp + 0x5c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp + 0x60], edx
call dword [eax + 0xa0]
cmp al, bl
jne 0x5d16fb
mov ecx, dword [ebp + 0x60]
cmp ecx, dword [esi + 0x1c]
jl 0x5d170b
jg 0x5d16fb
mov ecx, dword [ebp + 0x5c]
cmp ecx, dword [esi + 0x18]
jbe 0x5d170b
cmp al, bl
mov ecx, dword [ebp + 0x5c]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x60]
mov dword [esi + 0x1c], ecx
jne 0x5d1730
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 0xa
call fcn.005c6546
inc dword [ebp + 0x6c]
lea ecx, [esi + 0xa0]
call fcn.005ce30c
cmp dword [ebp + 0x6c], eax
jb 0x5d169f
jmp 0x5d1740
lea ecx, [ebp + 0x2c]
mov byte [esi + 0x51], 1
mov byte [ebp - 4], 0xa
call fcn.005c6546
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
cmp ecx, edx
mov eax, dword [esi + 0x18]
jl 0x5d175c
jg 0x5d1756
mov ecx, dword [esi + 0x20]
cmp ecx, eax
jbe 0x5d175c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov edi, dword [ebp + 0x4c]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x5d178c
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x58]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
jmp 0x5d17ba
push edx
push eax
lea ecx, [ebp + 4]
call fcn.005b4962
mov eax, dword [ebp + 4]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
cmp dword [esi + 0x118], 2
jne 0x5d17e5
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x1c]
sbb ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x24]
cmp edx, ecx
jl 0x5d17e5
jg 0x5d17df
mov edx, dword [esi + 0x20]
cmp edx, eax
jbe 0x5d17e5
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov edi, dword [ebp + 0x50]
cmp dword [edi], ebx
setne al
cmp al, bl
mov byte [esi + 0x90], al
je 0x5d1817
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x8c]
mov dword [esi + 0x94], eax
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 0xdc]
cmp ecx, ebx
je 0x5d182c
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
cmp byte [esi + 0x52], bl
jne 0x5d1838
mov ecx, esi
call fcn.005cf978
lea ecx, [ebp + 0x1c]
call fcn.005672a3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x34
leave
ret 0x34