Function at 0x403400
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 [0x429d68], 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 [0x429d74], ecx
mov dword [0x429d78], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x429d6c], ebx
mov dword [0x429d70], ebp
mov dword [0x429d7c], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42517c
mov edx, ecx
mov esi, edi
mov edi, 0x429d80
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
push 0x429d80
rep movsb byte es:[edi], byte [esi]
call fcn.00403710
add esp, 0x10
test eax, eax
je 0x403495
mov edi, 0x429d80
jmp 0x403685
mov edi, 0x425178
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 0x4034d9
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x4036b7
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 0x403544
cmp byte [esp + 0x11], 0x3a
jne 0x403544
mov edi, 0x4250bc
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 0x403572
mov esi, dword [sym.imp.USER32.dll_CharPrevA]
push eax
lea eax, [esp + 0x14]
push eax
call esi
cmp byte [eax], 0x5c
jne 0x403565
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.00414780
add esp, 0x10
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00403900
add esp, 8
test eax, eax
jne 0x403616
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x11c]
push str._scd_d_
push ecx
call fcn.00414780
add esp, 0x10
lea edx, [esp + 0x114]
push ebp
push edx
call fcn.00403900
add esp, 8
test eax, eax
jne 0x40367e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x114]
push ecx
push str._smsdn_
push edx
call fcn.00414780
add esp, 0xc
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00403900
add esp, 8
test eax, eax
je 0x40364f
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.00414780
add esp, 0xc
lea edx, [esp + 0x114]
push ebp
push edx
call fcn.00403900
add esp, 8
test eax, eax
je 0x4036b7
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 [0x42b604]
push 0x429d68
push 0x403dd0
push ecx
push 0x7e
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, eax
mov edi, 0x429d80
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