Function at 0x5413c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5413cc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x541801
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
call fcn.00404398
call fcn.00402acc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x541443
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 1
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x24]
call fcn.00402b2c
mov edx, 0x541818
mov eax, dword [ebp - 0x30]
call fcn.00408a94
test al, al
je 0x54143b
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jge 0x54143b
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
inc eax
call fcn.00402b2c
jmp 0x541443
inc dword [ebp - 0x24]
dec dword [ebp - 0x34]
jne 0x541409
cmp dword [ebp - 0x2c], 0
je 0x541478
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, 0x541834
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.00475c38
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00541c1c
jmp 0x5417a4
mov dl, 1
mov eax, dword [0x418180]
call fcn.004035d8
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x418180]
call fcn.004035d8
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x418180]
call fcn.004035d8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x541782
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0x5a
push 0
lea eax, [ebp - 0x50]
mov dl, byte [ebp - 0x11]
call fcn.00404580
push dword [ebp - 0x50]
push 0x541848
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404718
mov eax, dword [ebp - 0x4c]
call fcn.00404858
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x54176b
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x58]
mov dl, byte [ebp - 0x11]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
call fcn.00402d4c
mov edx, 0x54184c
lea eax, [ebp - 0x5c]
mov cl, 2
call fcn.00402d1c
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x54]
call fcn.004045fc
mov eax, dword [ebp - 0x54]
call fcn.004092f8
test al, al
je 0x541571
lea eax, [ebp - 0x58]
mov dl, byte [ebp - 0x11]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
call fcn.00402d4c
mov edx, 0x54184c
lea eax, [ebp - 0x5c]
mov cl, 2
call fcn.00402d1c
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x60]
call fcn.004045fc
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 8]
call fcn.0047e680
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x54176b
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x6c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov eax, 0x541834
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
mov dl, byte [ebp - 0x11]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
call fcn.00402d4c
mov edx, 0x54184c
lea eax, [ebp - 0x5c]
mov cl, 2
call fcn.00402d1c
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x70]
call fcn.004045fc
mov eax, dword [ebp - 0x70]
mov ecx, 1
pop edx
call fcn.00475c38
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x20]
call fcn.004092f8
test al, al
je 0x541617
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00541c1c
jmp 0x541680
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
mov dl, byte [ebp - 0x11]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
call fcn.00402d4c
mov edx, 0x54184c
lea eax, [ebp - 0x5c]
mov cl, 2
call fcn.00402d1c
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x7c]
call fcn.004045fc
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
pop edx
call fcn.00475c38
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xc]
call fcn.0047e680
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x54175f
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov eax, 0x541834
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x58]
mov dl, byte [ebp - 0x11]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
call fcn.00402d4c
mov edx, 0x54184c
lea eax, [ebp - 0x5c]
mov cl, 2
call fcn.00402d1c
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x94]
call fcn.004045fc
mov eax, dword [ebp - 0x94]
mov ecx, 2
pop edx
call fcn.00475c38
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x20]
call fcn.004092f8
test al, al
je 0x541753
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00541c1c
inc dword [ebp - 0x1c]
dec dword [ebp - 0x38]
jne 0x54169c
inc dword [ebp - 0x18]
dec dword [ebp - 0x34]
jne 0x54158d
dec byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x43
jne 0x5414b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54178c
mov eax, dword [ebp - 8]
call fcn.00403608
mov eax, dword [ebp - 0xc]
call fcn.00403608
mov eax, dword [ebp - 0x10]
call fcn.00403608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541808
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.004043bc
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.004043bc
lea eax, [ebp - 0x60]
call fcn.00404398
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004043bc
lea eax, [ebp - 0x44]
call fcn.00404398
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004043bc
lea eax, [ebp - 0x20]
call fcn.00404398
ret