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

Disassembly:
sub esp, 0x5e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5f0]
mov ebx, ecx
push edi
mov ecx, esi
mov dword [esp + 0x78], ebx
call fcn.0048bcf0
push 0
mov edi, eax
push 0
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.0048c330
push 1
push edi
push 0x507808
mov ecx, esi
call fcn.0048c290
mov ecx, 4
mov edi, str.EXTENDED_CPC_DSK
mov esi, 0x507808
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x42c02a
mov byte [esp + 0x13], 1
jmp 0x42c047
mov ecx, 2
mov edi, str.MV___CPC
mov esi, 0x507808
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x42c646
mov byte [esp + 0x13], dl
mov eax, dword [0x507838]
xor ecx, ecx
mov cl, ah
mov edi, 1
cmp ecx, edi
mov dword [esp + 0x6c], ecx
jne 0x42c062
mov edi, 2
and eax, 0xff
mov ebp, eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x5c], ebp
jne 0x42c174
imul ebp, ecx
test ebp, ebp
mov eax, 0x100
mov dword [esp + 0x14], 0
jle 0x42c222
lea ecx, [edi*4]
lea edx, [esp + 0x350]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
xor edx, edx
mov ecx, 5
mov edi, str.Track_Info
lea esi, [eax + 0x507808]
repe cmpsw word [esi], word es:[edi]
setne cl
test cl, cl
mov byte [esp + 0x20], cl
jne 0x42c10a
mov ecx, dword [esp + 0x18]
mov dl, byte [0x50783b]
mov edi, dword [esp + 0x18]
mov dword [ecx], eax
xor ecx, ecx
mov cl, byte [0x50783a]
shl edx, 8
add ecx, eax
lea eax, [ecx + edx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add edi, edx
inc ecx
cmp ecx, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
jl 0x42c0a7
mov al, byte [esp + 0x20]
test al, al
je 0x42c222
test ebp, ebp
mov edx, 0x100
jle 0x42c222
lea ecx, [esp + 0x350]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x38]
cmp edx, esi
jge 0x42c1ff
lea eax, [edx + 0x507808]
xor ebp, ebp
mov ecx, 5
mov edi, str.Track_Info
mov esi, eax
repe cmpsw word [esi], word es:[edi]
sete cl
test cl, cl
jne 0x42c166
mov esi, dword [esp + 0x38]
add edx, 0x10
add eax, 0x10
cmp edx, esi
jl 0x42c138
test cl, cl
je 0x42c1ff
mov eax, dword [esp + 0x20]
mov dword [eax], edx
add edx, 0x10
jmp 0x42c205
imul ebp, ecx
xor esi, esi
test ebp, ebp
mov edx, 0x100
mov dword [esp + 0x14], esi
jle 0x42c222
lea eax, [edi*4]
lea edi, [esp + 0x350]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
xor eax, eax
mov ah, byte [esi + 0x50783c]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x42c1e2
xor eax, eax
mov ecx, 5
mov edi, str.Track_Info
lea esi, [edx + 0x507808]
repe cmpsw word [esi], word es:[edi]
setne al
test al, al
jne 0x42c10a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov dword [ecx], edx
add edx, eax
jmp 0x42c1e8
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x1c]
inc esi
cmp esi, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
jl 0x42c1a0
jmp 0x42c222
mov ecx, dword [esp + 0x20]
mov dword [ecx], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
jne 0x42c126
xor eax, eax
mov ecx, 0xac
lea edi, [esp + 0xa0]
push str.CPDREAD
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xa4]
push 0x11
push ecx
call fcn.00489320
lea edi, [ebx + 4]
mov dword [ebx + 0x40020c], 0
mov ecx, 0xac
lea esi, [esp + 0xac]
mov byte [esp + 0xc6], 0
mov dword [esp + 0x48], edi
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x40020c]
mov ecx, dword [esp + 0x68]
mov edx, 0x2b0
xor eax, eax
add esi, edx
add esp, 0xc
cmp ecx, eax
mov dword [ebx + 0x40020c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x70], eax
jle 0x42c5dc
lea ecx, [esp + 0x350]
lea ebp, [esp + 0xc1]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], ebp
mov ecx, dword [esp + 0x6c]
test ecx, ecx
mov dword [esp + 0x74], 0
jle 0x42c5aa
mov ecx, dword [esp + 0x48]
add eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
cmp eax, dword [esp + 0x38]
jge 0x42c576
cmp dword [esp + 0x18], 0xa4
jge 0x42c30e
mov ecx, edx
shr ecx, 8
mov byte [ebp - 1], dl
mov byte [ebp], cl
mov ecx, edx
shr ecx, 0x10
mov byte [ebp + 1], cl
mov ecx, edx
shr ecx, 0x18
mov byte [ebp + 2], cl
lea esi, [eax + 0x507808]
mov ecx, 6
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x100]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x99]
mov edi, ecx
and edi, 0xff
mov dword [esp + 0x60], 0
mov dword [esp + 0x80], edi
jle 0x42c576
movzx cx, cl
mov si, cx
shr si, 8
mov word [esp + 0x20], si
lea esi, [eax + 0x507820]
mov dword [esp + 0x64], esi
mov dword [esp + 0x7c], ecx
jmp 0x42c374
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], eax
mov byte [esp + 0x24], al
mov al, byte [esp + 0x4e]
mov dword [esp + 0x28], edx
mov byte [esp + 0x26], al
mov al, byte [esp + 0x20]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x29], al
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x30], edx
mov dl, byte [esp + 0x4f]
mov byte [esp + 0x25], ah
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], cl
je 0x42c3e4
mov eax, dword [esp + 0x52]
xor ecx, ecx
mov byte [esp + 0x32], al
cmp byte [esp + 0x97], 1
setne dl
mov cl, ah
mov byte [esp + 0x33], cl
dec edx
and edx, 0x40
mov byte [esp + 0x2a], dl
jmp 0x42c40d
mov dl, byte [esp + 0x98]
mov cl, dl
mov eax, 0x80
shl eax, cl
xor ecx, ecx
test dl, dl
mov byte [esp + 0x32], al
setne al
mov cl, ah
mov byte [esp + 0x33], cl
dec eax
and eax, 0x40
mov byte [esp + 0x2a], al
cmp byte [esp + 0x50], 0xb2
setne al
xor dx, dx
mov dl, cl
movzx cx, byte [esp + 0x32]
dec eax
and eax, 0x10
shl edx, 8
mov byte [esp + 0x2b], al
or ecx, edx
test cx, cx
jne 0x42c439
mov byte [esp + 0x2c], 0xf0
jmp 0x42c449
cmp byte [esp + 0x50], 0xb5
mov byte [esp + 0x2c], 0xb0
je 0x42c449
mov byte [esp + 0x2c], al
cmp dword [esp + 0x18], 0xa4
mov ebp, dword [esp + 0x32]
jge 0x42c509
mov eax, dword [ebx + 0x40020c]
lea ecx, [eax + 0x10]
cmp ecx, 0x380000
ja 0x42c646
mov ecx, dword [esp + 0x24]
lea eax, [eax + ebx + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x40020c]
add eax, 0x10
mov edi, eax
mov dword [ebx + 0x40020c], eax
mov eax, edx
mov ecx, ebp
and ecx, 0xff
and eax, 0xffff
or eax, ecx
lea ecx, [edi + eax]
cmp ecx, 0x380000
ja 0x42c646
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
add edi, ebx
mov ecx, eax
mov ebx, ecx
shr ecx, 2
lea esi, [esi + 0x507808]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x40020c]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x64]
add ecx, eax
mov dword [ebx + 0x40020c], ecx
mov ecx, dword [esp + 0x40]
lea eax, [ecx + eax + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
and edx, 0xffff
and ebp, 0xff
or edx, ebp
add ecx, edx
test al, al
mov dword [esp + 0x14], ecx
je 0x42c53e
mov eax, dword [esp + 0x52]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
add ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x42c556
mov cl, byte [esp + 0x98]
mov eax, dword [esp + 0x1c]
mov edx, 0x80
shl edx, cl
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
inc eax
add esi, 8
cmp eax, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
jl 0x42c370
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
inc eax
add ebp, 4
add edi, 4
inc esi
cmp eax, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], esi
jl 0x42c2d9
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
inc eax
add edi, 8
add ebp, 8
cmp eax, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x68], ebp
jl 0x42c2b3
mov eax, dword [esp + 0x14]
cmp eax, 0x7d000
jge 0x42c5e6
mov byte [esp + 0xbb], 0
jmp 0x42c5fc
cmp eax, 0xf0000
setge al
dec eax
and eax, 0xfffffff0
add eax, 0x20
mov byte [esp + 0xbb], al
mov edi, dword [esp + 0x3c]
mov ecx, edx
shr ecx, 8
mov eax, edx
shr eax, 0x10
mov byte [esp + 0xbc], dl
mov byte [esp + 0xbd], cl
shr edx, 0x18
mov byte [esp + 0xbe], al
mov ecx, 0xac
lea esi, [esp + 0xa0]
mov byte [esp + 0xbf], dl
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5e0
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x5e0
ret 4