Function at 0x405770
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x445877
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x45d440]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov edi, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x54], 2
call fcn.0042d315
mov ecx, dword [0x45d440]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x18]
mov byte [esp + 0x50], 4
mov eax, dword [edx - 8]
test eax, eax
jne 0x405944
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4057fc
mov esi, dword [esp + 0x58]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0042d01c
mov dword [esp + 0x24], edi
jmp 0x405c4b
xor esi, esi
test eax, eax
jle 0x405a68
lea edi, [ebx + 0x24]
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, edi
call fcn.00403cc0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 5
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042d2a7
lea edx, [esp + 0x64]
lea ecx, [esp + 0x10]
push edx
call fcn.0042d3e0
push 0
push str.http
lea ecx, [esp + 0x6c]
call fcn.0042aef6
cmp eax, 0xffffffff
jne 0x4058eb
push 0
push 0x459ad4
lea ecx, [esp + 0x6c]
call fcn.0042aef6
cmp eax, 0xffffffff
jne 0x4058eb
mov ecx, dword [esp + 0x64]
mov al, byte [ecx]
cmp al, 0x5c
jne 0x40588c
cmp byte [ecx + 1], 0x5c
jne 0x4058a4
mov eax, dword [ebx + 0x2c]
inc esi
cmp esi, eax
jl 0x405809
jmp 0x405a68
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042d430
lea eax, [esp + 0x64]
push eax
jmp 0x405a5f
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042d683
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x64]
dec eax
push eax
push edx
call fcn.0042add2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 6
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042d2a7
jmp 0x405a68
mov eax, dword [esp + 0x10]
push 0x2f
lea ecx, [esp + 0x14]
mov esi, dword [eax - 8]
call fcn.0042aec6
sub esi, eax
lea ecx, [esp + 0x20]
dec esi
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0042add2
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 7
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042d2a7
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042d683
lea edx, [esp + 0x64]
push edx
jmp 0x405a5f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x64]
push eax
call fcn.0042d3e0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042d3e0
push 0
push str.http
lea ecx, [esp + 0x6c]
call fcn.0042aef6
cmp eax, 0xffffffff
jne 0x4059fe
push 0
push 0x459ad4
lea ecx, [esp + 0x6c]
call fcn.0042aef6
cmp eax, 0xffffffff
jne 0x4059fe
mov ecx, dword [esp + 0x64]
mov al, byte [ecx]
cmp al, 0x5c
je 0x4059b0
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042d430
lea edx, [esp + 0x64]
push edx
jmp 0x405a5f
cmp byte [ecx + 1], 0x5c
je 0x405a68
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042d683
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.0042add2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 8
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042d2a7
jmp 0x405a68
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0042ab9c
mov edx, dword [esp + 0x10]
push 0x2f
lea ecx, [esp + 0x14]
mov esi, dword [edx - 8]
call fcn.0042aec6
sub esi, eax
lea eax, [esp + 0x20]
dec esi
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.0042add2
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 9
call fcn.0042d3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042d2a7
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042d683
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042d6bf
mov edx, dword [0x45d440]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
mov byte [esp + 0x50], 0xa
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405c25
mov edi, 0x459ac8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x405bdc
test bl, 1
je 0x405b97
mov cl, byte [esp + 0x20]
lea edx, [esp + 0x1c]
add cl, 0x41
push edx
mov byte [esp + 0x20], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x405afb
cmp eax, 3
je 0x405afb
cmp eax, 4
je 0x405afb
cmp eax, 2
jne 0x405b97
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.0042d430
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042d6bf
lea ecx, [esp + 0x28]
call fcn.004327e2
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 0xb
call fcn.004328f4
test eax, eax
jne 0x405bac
lea ecx, [esp + 0x38]
call fcn.004327e2
push 0x4603c0
push str.SDC_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0xc
call fcn.0042abd9
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.004328f4
test eax, eax
jne 0x405bb7
lea ecx, [esp + 0x14]
call fcn.0042d232
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0xb
call fcn.00432837
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.00432837
mov ecx, dword [esp + 0x20]
shr ebx, 1
inc ecx
test ebx, ebx
mov dword [esp + 0x20], ecx
jne 0x405ac4
jmp 0x405bdc
lea ecx, [esp + 0x28]
call fcn.00432b0f
jmp 0x405bce
lea ecx, [esp + 0x38]
call fcn.00432b0f
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0xb
call fcn.00432837
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.00432837
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405c10
mov al, byte [esp + 0x60]
test al, al
jne 0x405c17
mov edx, dword [esp + 0x5c]
push 0x31
push str.Error_No_CD
push str.Please_Insert_the_CD_and_press_OK_to_continue...
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x405c25
jmp 0x405a86
lea eax, [esp + 0x14]
push eax
jmp 0x405c1c
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042d3e0
mov esi, dword [esp + 0x58]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0042d01c
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
mov byte [esp + 0x50], 4
call fcn.0042d2a7
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 3
call fcn.0042d2a7
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.0042d2a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.0042d2a7
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 0
call fcn.0042d2a7
mov ecx, dword [esp + 0x48]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10