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

Disassembly:
push ebp
sub esp, 0x30
push 0x80
mov eax, 0x61ffb6
call fcn.005793bd
mov esi, ecx
mov dword [ebp + 0x20], esi
push dword [ebp + 0x3c]
call fcn.005c4ab4
mov eax, dword [ebp + 0x5c]
xor ebx, ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x60]
mov ecx, 0x6e6e58
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.0041c116
mov ecx, eax
call fcn.0054a201
lea ecx, [esi + 0x54]
mov byte [esi + 0x50], al
mov byte [esi + 0x53], bl
call fcn.0042ae65
lea ecx, [esi + 0x74]
mov byte [esi + 0x70], bl
call fcn.0042ae65
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.005c627c
push dword [ebp + 0x48]
lea ecx, [esi + 0xd4]
call fcn.005c627c
push dword [ebp + 0x54]
lea ecx, [esi + 0xdc]
call fcn.005c627c
push dword [ebp + 0x58]
lea ecx, [esi + 0xe4]
call fcn.005c627c
mov byte [ebp - 4], 8
call fcn.00520704
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 [0x6d4074]
lea ecx, [ebp + 0x1c]
call fcn.00567f08
cmp byte [ebp + 0x6c], bl
mov byte [ebp - 4], 0xa
je 0x5d1572
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.005c61c2
test eax, eax
jbe 0x5d16ce
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.005ce687
push eax
lea ecx, [ebp - 0x68]
call fcn.005c6514
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 0x5d15f5
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 0x5d15f5
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0xb0]
call fcn.005c6ba3
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.005d0ff5
cmp byte [esi + 0x53], bl
jne 0x5d165b
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x80]
test al, al
je 0x5d165b
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.00414d7e
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0xb
call fcn.00414e93
mov byte [esi + 0x53], 1
cmp byte [esi + 0x70], bl
jne 0x5d169b
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x78]
test al, al
je 0x5d169b
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.00414d7e
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0xb
call fcn.00414e93
mov byte [esi + 0x70], 1
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0xa4]
test al, al
je 0x5d16ae
mov byte [esi + 0x52], 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.005cf357
mov ecx, dword [ebp + 0x40]
inc dword [ebp + 0x6c]
call fcn.005c61c2
cmp dword [ebp + 0x6c], eax
jb 0x5d1588
mov byte [ebp + 0x6f], bl
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0x40]
call fcn.005c61c2
cmp dword [ebp + 0x68], eax
jae 0x5d1828
push 2
mov ecx, esi
call fcn.005cf02c
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 0x5d172f
push eax
mov ecx, edi
call fcn.005ce666
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.00511b8e
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 0xe
call fcn.00418da3
cmp dword [ebp + 0x5c], ebx
sete byte [ebp + 0x6f]
cmp byte [ebp + 0x6f], bl
je 0x5d175b
mov eax, dword [ebp + 0x64]
push eax
mov ecx, edi
mov dword [esi + 0xc8], eax
call fcn.005ce666
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], ebx
jmp 0x5d1813
lea eax, [ebp + 0x3f]
push eax
push 2
push dword [0x6d4074]
mov byte [ebp + 0x3f], bl
call fcn.00565504
mov ecx, eax
call fcn.00564cf0
cmp eax, ebx
mov dword [ebp + 0x44], eax
je 0x5d17c7
lea ecx, [ebp + 0x48]
call fcn.00565669
push 0xa
lea eax, [ebp + 0x5c]
push eax
push str.Disk_error_n
push dword [ebp + 0x44]
mov byte [ebp - 4], 0x10
call fcn.00427b5e
pop ecx
pop ecx
push eax
call fcn.0056a20d
pop ecx
pop ecx
push eax
call fcn.00427c9c
cmp byte [ebp + 0x3f], bl
pop ecx
pop ecx
je 0x5d17bb
mov ecx, dword [ebp + 0x44]
call fcn.00427a6f
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xe
call fcn.00564a84
push dword [ebp + 0x64]
mov ecx, edi
call fcn.005ce666
lea ecx, [ebp + 0x5c]
add eax, 0x48
push ecx
mov ecx, eax
call fcn.00511b8e
push dword [ebp + 0x64]
mov ecx, edi
call fcn.005ce666
push dword [ebp + 0x64]
mov dword [eax + 0x38], 1
mov ecx, edi
mov dword [eax + 0x3c], ebx
call fcn.005ce666
inc dword [ebp + 0x68]
mov byte [eax + 0x50], 1
mov ecx, dword [esi + 0xcc]
cmp ecx, ebx
je 0x5d1813
mov eax, dword [ecx]
call dword [eax + 0x68]
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xa
call fcn.00418da3
cmp byte [ebp + 0x6f], bl
je 0x5d16d4
cmp byte [ebp + 0x6f], bl
push ebx
jne 0x5d1867
mov ecx, edi
call fcn.005ce666
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.005220b7
push 0x66cd44
lea eax, [ebp - 0x8c]
push eax
call fcn.00578ed6
mov ecx, esi
call fcn.005cf02c
push 1
mov ecx, esi
mov dword [esi + 0xc0], eax
call fcn.005cf02c
mov dword [esi + 0xc4], eax
push dword [esi + 0xc8]
mov ecx, edi
call fcn.005ce666
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 0x5d1990
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.0047bd90
push ebx
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.005cf02c
push eax
mov ecx, edi
call fcn.005ce666
push eax
lea ecx, [ebp + 0x5c]
call fcn.005c627c
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.005ce988
push dword [ebp + 0x6c]
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp + 0x2c]
call fcn.0047bd90
push 1
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.005cf02c
push eax
mov ecx, edi
call fcn.005ce666
push eax
lea ecx, [ebp + 0x5c]
call fcn.005c6514
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.0057bb4c
add esp, 0xc
test eax, eax
je 0x5d1959
mov eax, dword [esi + 0x11c]
mov dword [esi + 0x118], eax
lea ecx, [ebp + 0x2c]
call fcn.0047bdbf
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x12
call fcn.005c620a
lea ecx, [ebp + 0x24]
call fcn.0047bdbf
mov dword [ebp - 4], 0xa
jmp 0x5d1990
lea ecx, [esi + 0xa0]
mov byte [esi + 0x51], bl
mov dword [ebp + 0x6c], ebx
call fcn.005ce616
test eax, eax
jbe 0x5d1a4a
push dword [ebp + 0x6c]
lea ecx, [esi + 0xa0]
call fcn.005ce666
push eax
lea ecx, [ebp + 0x2c]
call fcn.005c627c
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 0x5d1a15
cmp edx, dword [esi + 0x34]
jne 0x5d1a15
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 0x5d1a05
mov ecx, dword [ebp + 0x60]
cmp ecx, dword [esi + 0x1c]
jl 0x5d1a15
jg 0x5d1a05
mov ecx, dword [ebp + 0x5c]
cmp ecx, dword [esi + 0x18]
jbe 0x5d1a15
cmp al, bl
mov ecx, dword [ebp + 0x5c]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x60]
mov dword [esi + 0x1c], ecx
jne 0x5d1a3a
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 0xa
call fcn.005c620a
inc dword [ebp + 0x6c]
lea ecx, [esi + 0xa0]
call fcn.005ce616
cmp dword [ebp + 0x6c], eax
jb 0x5d19a9
jmp 0x5d1a4a
lea ecx, [ebp + 0x2c]
mov byte [esi + 0x51], 1
mov byte [ebp - 4], 0xa
call fcn.005c620a
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
cmp ecx, edx
mov eax, dword [esi + 0x18]
jl 0x5d1a66
jg 0x5d1a60
mov ecx, dword [esi + 0x20]
cmp ecx, eax
jbe 0x5d1a66
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov edi, dword [ebp + 0x4c]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x5d1a96
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 0x5d1ac4
push edx
push eax
lea ecx, [ebp + 4]
call fcn.005b4242
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 0x5d1aef
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 0x5d1aef
jg 0x5d1ae9
mov edx, dword [esi + 0x20]
cmp edx, eax
jbe 0x5d1aef
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 0x5d1b21
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 0x5d1b36
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
cmp byte [esi + 0x52], bl
jne 0x5d1b42
mov ecx, esi
call fcn.005cfc82
lea ecx, [ebp + 0x1c]
call fcn.00566b7e
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