Function at 0x4033c0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
sub esp, 0x208
mov dword [0x426bc0], eax
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
mov dword [0x426bcc], ecx
mov dword [0x426bd0], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x426bc4], ebx
mov dword [0x426bc8], ebp
mov dword [0x426bd4], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42217c
mov edx, ecx
mov esi, edi
mov edi, 0x426bd8
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
push 0x426bd8
rep movsb byte es:[edi], byte [esi]
call fcn.004036d0
add esp, 0x10
test eax, eax
je 0x403455
mov edi, 0x426bd8
jmp 0x403645
mov edi, 0x422178
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebx]
and ecx, 3
cmp al, 0x5c
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x10], al
je 0x403499
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x403677
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x403504
cmp byte [esp + 0x11], 0x3a
jne 0x403504
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x10]
mov cl, byte [esp + ecx + 0x10]
cmp cl, 0x5c
je 0x403532
mov esi, dword [sym.imp.USER32.dll_CharPrevA]
push eax
lea eax, [esp + 0x14]
push eax
call esi
cmp byte [eax], 0x5c
jne 0x403525
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, dword [esp + 0x234]
lea ecx, [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x11c]
push str._sdisk_d_
push edx
mov byte [eax], 0
call fcn.00413140
add esp, 0x10
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.004038c0
add esp, 8
test eax, eax
jne 0x4035d6
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x11c]
push str._scd_d_
push ecx
call fcn.00413140
add esp, 0x10
lea edx, [esp + 0x114]
push ebp
push edx
call fcn.004038c0
add esp, 8
test eax, eax
jne 0x40363e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x114]
push ecx
push str._smsdn_
push edx
call fcn.00413140
add esp, 0xc
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.004038c0
add esp, 8
test eax, eax
je 0x40360f
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push str._smsdn1_
push ecx
call fcn.00413140
add esp, 0xc
lea edx, [esp + 0x114]
push ebp
push edx
call fcn.004038c0
add esp, 8
test eax, eax
je 0x403677
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov ecx, dword [esp + 0x21c]
mov eax, dword [0x42845c]
push 0x426bc0
push 0x403d90
push ecx
push 0x7e
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, eax
mov edi, 0x426bd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret