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

Disassembly:
push ebp
sub esp, 0x18
push 0x9c
mov eax, 0x6190b5
call fcn.004091ac
mov esi, ecx
mov dword [ebp], esi
mov eax, dword [ebp + 0x40]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Ghost::Disk::DiskDriveNormal.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], eax
call fcn.004ff4b8
mov ecx, eax
call fcn.0051d228
lea ecx, [esi + 0x44]
mov byte [esi + 0x40], al
mov byte [esi + 0x43], bl
call fcn.00403761
lea ecx, [esi + 0x64]
mov byte [esi + 0x60], bl
call fcn.00403761
mov eax, dword [ebp + 0x48]
mov dword [esi + 0x88], eax
mov eax, dword [ebp + 0x4c]
lea edi, [esi + 0x90]
mov dword [esi + 0x8c], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea eax, [esi + 0xa0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
push dword [ebp + 0x28]
lea ecx, [esi + 0xbc]
call fcn.0055dca4
push dword [ebp + 0x2c]
lea ecx, [esi + 0xc4]
call fcn.0055dca4
push dword [ebp + 0x38]
lea ecx, [esi + 0xcc]
call fcn.0055dca4
push dword [ebp + 0x3c]
lea ecx, [esi + 0xd4]
call fcn.0055dca4
mov byte [ebp - 4], 8
call fcn.00505ec6
push str.constructor
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
push dword [0x6f0714]
lea ecx, [ebp + 0x44]
call fcn.00553a91
cmp byte [ebp + 0x50], bl
mov byte [ebp - 4], 9
je 0x5341b3
xor eax, eax
inc eax
mov dword [esi + 0xec], eax
mov dword [esi + 0xe8], eax
mov ecx, dword [ebp + 0x24]
mov byte [esi + 0x42], bl
mov dword [ebp + 0x50], ebx
call fcn.0053062c
test eax, eax
jbe 0x53431b
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0x50]
mov ecx, dword [ebp + 0x24]
mov byte [ebp - 4], 0xa
call fcn.005aa4c1
push eax
lea ecx, [ebp - 0x68]
call fcn.005b9a51
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 0x534236
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 0x534236
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0xa0]
call fcn.0051dcf7
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.00533c87
cmp byte [esi + 0x43], bl
jne 0x5342a2
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x80]
test al, al
je 0x5342a2
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 0x84]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xb
call fcn.00403c71
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.0040349d
mov byte [esi + 0x43], 1
cmp byte [esi + 0x60], bl
jne 0x5342e8
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0x78]
test al, al
je 0x5342e8
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 0x7c]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xc
call fcn.00403c71
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.0040349d
mov byte [esi + 0x60], 1
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
call dword [eax + 0xa4]
test al, al
je 0x5342fb
mov byte [esi + 0x42], 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00532a7c
mov ecx, dword [ebp + 0x24]
inc dword [ebp + 0x50]
call fcn.0053062c
cmp dword [ebp + 0x50], eax
jb 0x5341c9
mov byte [ebp + 0x53], bl
mov dword [ebp + 0x28], ebx
mov ecx, dword [ebp + 0x24]
call fcn.0053062c
cmp dword [ebp + 0x28], eax
jae 0x534475
push 2
mov ecx, esi
call fcn.00532843
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
cmp byte [esi + 0x42], bl
mov byte [ebp - 4], 0xd
jne 0x53437c
push eax
mov ecx, edi
call fcn.0053230d
mov ecx, dword [eax]
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
call dword [eax + 0xa8]
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xe
call fcn.005b9a51
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xd
call fcn.004d6118
cmp dword [ebp + 0x14], ebx
sete byte [ebp + 0x53]
cmp byte [ebp + 0x53], bl
je 0x5343a8
mov eax, dword [ebp + 0x4c]
push eax
mov ecx, edi
mov dword [esi + 0xb8], eax
call fcn.0053230d
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], ebx
jmp 0x534460
lea eax, [ebp + 0x4b]
push eax
push 2
push dword [0x6f0714]
mov byte [ebp + 0x4b], bl
call fcn.00555c8d
mov ecx, eax
call fcn.005555ed
cmp eax, ebx
mov dword [ebp + 0x2c], eax
je 0x534414
lea ecx, [ebp + 0x38]
call fcn.00555d3f
push 0xa
lea eax, [ebp + 0x14]
push eax
push str.Disk_error_n
push dword [ebp + 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00405b3e
pop ecx
pop ecx
push eax
call fcn.00557579
pop ecx
pop ecx
push eax
call fcn.00405c7c
cmp byte [ebp + 0x4b], bl
pop ecx
pop ecx
je 0x534408
mov ecx, dword [ebp + 0x2c]
call fcn.00422409
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xd
call fcn.00555594
push dword [ebp + 0x4c]
mov ecx, edi
call fcn.0053230d
lea ecx, [ebp + 0x14]
add eax, 0x48
push ecx
mov ecx, eax
call fcn.005b9a51
push dword [ebp + 0x4c]
mov ecx, edi
call fcn.0053230d
push dword [ebp + 0x4c]
mov dword [eax + 0x38], 1
mov ecx, edi
mov dword [eax + 0x3c], ebx
call fcn.0053230d
inc dword [ebp + 0x28]
mov byte [eax + 0x50], 1
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
je 0x534460
mov eax, dword [ecx]
call dword [eax + 0x68]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 9
call fcn.004d6118
cmp byte [ebp + 0x53], bl
je 0x534321
cmp byte [ebp + 0x53], bl
push ebx
jne 0x5344b4
mov ecx, edi
call fcn.0053230d
add eax, 0x48
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp + 0xc], str...DiskDriveNormal.cpp
mov dword [ebp + 0x10], 0xcc
call fcn.00502c16
push 0x69b850
lea eax, [ebp - 0xa8]
push eax
call fcn.0040b73f
mov ecx, esi
call fcn.00532843
push 1
mov ecx, esi
mov dword [esi + 0xb0], eax
call fcn.00532843
push dword [esi + 0xb8]
mov ecx, edi
mov dword [esi + 0xb4], eax
call fcn.0053230d
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [esi + 0x42], bl
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
jne 0x5345dd
push eax
mov byte [ebp - 4], 0x10
mov dword [ebp + 0x50], eax
call fcn.0040822e
pop ecx
push eax
lea ecx, [ebp + 4]
call fcn.005d2070
push ebx
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00532843
push eax
mov ecx, edi
call fcn.0053230d
push eax
lea ecx, [ebp + 0x14]
call fcn.0055dca4
push dword [ebp + 4]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push ebx
push 1
push ebx
push ebx
mov byte [ebp - 4], 0x12
call dword [eax + 0x24]
push dword [ebp + 4]
mov ecx, esi
call fcn.005323d8
push dword [ebp + 0x50]
call fcn.0040822e
pop ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.005d2070
push 1
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00532843
push eax
mov ecx, edi
call fcn.0053230d
push eax
lea ecx, [ebp + 0x14]
call fcn.005b9a51
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push ebx
push 1
push ebx
push ebx
call dword [eax + 0x24]
push dword [ebp + 0x50]
push dword [ebp + 0xc]
push dword [ebp + 4]
call fcn.004099ef
add esp, 0xc
test eax, eax
je 0x5345a6
mov eax, dword [esi + 0xec]
mov dword [esi + 0xe8], eax
lea ecx, [ebp + 0xc]
call fcn.0041e5b4
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0x11
call fcn.004d6118
lea ecx, [ebp + 4]
call fcn.0041e5b4
mov dword [ebp - 4], 9
jmp 0x5345dd
lea ecx, [esi + 0x90]
mov byte [esi + 0x41], bl
mov dword [ebp + 0x50], ebx
call fcn.005322e1
test eax, eax
jbe 0x534697
push dword [ebp + 0x50]
lea ecx, [esi + 0x90]
call fcn.0053230d
push eax
lea ecx, [ebp + 0xc]
call fcn.0055dca4
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 0x15
call dword [eax + 8]
cmp eax, dword [esi + 0x20]
jne 0x534662
cmp edx, dword [esi + 0x24]
jne 0x534662
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp + 0x18], edx
call dword [eax + 0xa0]
cmp al, bl
jne 0x534652
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [esi + 0xc]
jl 0x534662
jg 0x534652
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [esi + 8]
jbe 0x534662
cmp al, bl
mov ecx, dword [ebp + 0x14]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], ecx
jne 0x534687
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.004d6118
inc dword [ebp + 0x50]
lea ecx, [esi + 0x90]
call fcn.005322e1
cmp dword [ebp + 0x50], eax
jb 0x5345f6
jmp 0x534697
lea ecx, [ebp + 0xc]
mov byte [esi + 0x41], 1
mov byte [ebp - 4], 9
call fcn.004d6118
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
cmp edx, ecx
mov eax, dword [esi + 8]
jl 0x5346b3
jg 0x5346ad
mov edx, dword [esi + 0x10]
cmp edx, eax
jbe 0x5346b3
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov edi, dword [ebp + 0x30]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x5346e6
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x58]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
jmp 0x5347cd
xor eax, eax
inc eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x34]
cmp eax, ebx
mov ecx, dword [esi + 0x30]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], eax
jg 0x5347a9
jl 0x534717
cmp ecx, 0xff
jae 0x5347a9
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
push edi
push eax
push dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call fcn.00418a50
push edx
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00410710
cmp edx, ebx
jl 0x5347a9
jg 0x534747
cmp eax, 0x400
jbe 0x5347a9
cmp edi, ebx
jg 0x534762
mov eax, dword [ebp + 0xc]
jl 0x534755
cmp eax, 0x20
jae 0x534762
add eax, 1
adc edi, ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
jmp 0x534794
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
jg 0x534780
mov eax, dword [ebp + 0x14]
jl 0x534773
cmp eax, 0x40
jae 0x534780
add eax, 1
adc ecx, ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
jmp 0x534794
mov dword [esi + 0x38], 0x3f
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], 0xff
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x3c], ebx
jl 0x5346f5
jg 0x5347a9
cmp dword [esi + 0x38], 0x3f
jb 0x5346f5
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x30]
call fcn.00418a50
push edx
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00410710
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
cmp dword [esi + 0xe8], 2
jne 0x5347f8
mov eax, dword [esi + 8]
sub eax, dword [esi + 0x38]
mov ecx, dword [esi + 0xc]
sbb ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x14]
cmp edx, ecx
jl 0x5347f8
jg 0x5347f2
mov edx, dword [esi + 0x10]
cmp edx, eax
jbe 0x5347f8
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov edi, dword [ebp + 0x34]
cmp dword [edi], ebx
setne al
cmp al, bl
mov byte [esi + 0x80], al
je 0x53482a
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x8c]
mov dword [esi + 0x84], eax
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov dword [esi + 0x88], eax
mov ecx, dword [esi + 0xcc]
cmp ecx, ebx
je 0x53483f
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
lea ecx, [ebp + 0x44]
call fcn.00553477
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x1c
leave
ret 0x30