Function at 0x405700
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4468b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x45e450]
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.0042e357
mov ecx, dword [0x45e450]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x18]
mov byte [esp + 0x50], 4
mov eax, dword [edx - 8]
test eax, eax
jne 0x4058d4
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x40578c
mov esi, dword [esp + 0x58]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0042e05e
mov dword [esp + 0x24], edi
jmp 0x405bdb
xor esi, esi
test eax, eax
jle 0x4059f8
lea edi, [ebx + 0x24]
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, edi
call fcn.00403c70
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 5
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042e2e9
lea edx, [esp + 0x64]
lea ecx, [esp + 0x10]
push edx
call fcn.0042e422
push 0
push str.http
lea ecx, [esp + 0x6c]
call fcn.0042bee6
cmp eax, 0xffffffff
jne 0x40587b
push 0
push 0x45aae4
lea ecx, [esp + 0x6c]
call fcn.0042bee6
cmp eax, 0xffffffff
jne 0x40587b
mov ecx, dword [esp + 0x64]
mov al, byte [ecx]
cmp al, 0x5c
jne 0x40581c
cmp byte [ecx + 1], 0x5c
jne 0x405834
mov eax, dword [ebx + 0x2c]
inc esi
cmp esi, eax
jl 0x405799
jmp 0x4059f8
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042e472
lea eax, [esp + 0x64]
push eax
jmp 0x4059ef
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042e6c5
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.0042bdc2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 6
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042e2e9
jmp 0x4059f8
mov eax, dword [esp + 0x10]
push 0x2f
lea ecx, [esp + 0x14]
mov esi, dword [eax - 8]
call fcn.0042beb6
sub esi, eax
lea ecx, [esp + 0x20]
dec esi
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0042bdc2
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 7
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042e2e9
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042e6c5
lea edx, [esp + 0x64]
push edx
jmp 0x4059ef
lea eax, [esp + 0x18]
lea ecx, [esp + 0x64]
push eax
call fcn.0042e422
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042e422
push 0
push str.http
lea ecx, [esp + 0x6c]
call fcn.0042bee6
cmp eax, 0xffffffff
jne 0x40598e
push 0
push 0x45aae4
lea ecx, [esp + 0x6c]
call fcn.0042bee6
cmp eax, 0xffffffff
jne 0x40598e
mov ecx, dword [esp + 0x64]
mov al, byte [ecx]
cmp al, 0x5c
je 0x405940
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042e472
lea edx, [esp + 0x64]
push edx
jmp 0x4059ef
cmp byte [ecx + 1], 0x5c
je 0x4059f8
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042e6c5
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.0042bdc2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 8
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042e2e9
jmp 0x4059f8
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0042bb8c
mov edx, dword [esp + 0x10]
push 0x2f
lea ecx, [esp + 0x14]
mov esi, dword [edx - 8]
call fcn.0042beb6
sub esi, eax
lea eax, [esp + 0x20]
dec esi
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.0042bdc2
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 9
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 4
call fcn.0042e2e9
push str.SDC_
lea ecx, [esp + 0x10]
call fcn.0042e6c5
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042e701
mov edx, dword [0x45e450]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
mov byte [esp + 0x50], 0xa
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405bb5
mov edi, 0x45aad8
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 0x405b6c
test bl, 1
je 0x405b27
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 0x405a8b
cmp eax, 3
je 0x405a8b
cmp eax, 4
je 0x405a8b
cmp eax, 2
jne 0x405b27
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.0042e472
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042e701
lea ecx, [esp + 0x28]
call fcn.00433842
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 0xb
call fcn.00433954
test eax, eax
jne 0x405b3c
lea ecx, [esp + 0x38]
call fcn.00433842
push 0x463420
push str.SDC_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0xc
call fcn.0042bbc9
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.00433954
test eax, eax
jne 0x405b47
lea ecx, [esp + 0x14]
call fcn.0042e274
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0xb
call fcn.00433897
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.00433897
mov ecx, dword [esp + 0x20]
shr ebx, 1
inc ecx
test ebx, ebx
mov dword [esp + 0x20], ecx
jne 0x405a54
jmp 0x405b6c
lea ecx, [esp + 0x28]
call fcn.00433b6f
jmp 0x405b5e
lea ecx, [esp + 0x38]
call fcn.00433b6f
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0xb
call fcn.00433897
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.00433897
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405ba0
mov al, byte [esp + 0x60]
test al, al
jne 0x405ba7
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 0x405bb5
jmp 0x405a16
lea eax, [esp + 0x14]
push eax
jmp 0x405bac
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042e422
mov esi, dword [esp + 0x58]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0042e05e
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
mov byte [esp + 0x50], 4
call fcn.0042e2e9
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 3
call fcn.0042e2e9
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.0042e2e9
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.0042e2e9
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 0
call fcn.0042e2e9
mov ecx, dword [esp + 0x48]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10