Function at 0x554040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x37
push 0
push 0
dec ecx
jne 0x554048
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405168
xor eax, eax
push ebp
push 0x55450b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, 1
mov eax, dword [0x41c400]
call fcn.00403e50
mov dword [ebp - 0x14], eax
call fcn.00506f28
test al, al
je 0x5540b2
lea eax, [ebp - 0x44]
mov edx, 0x554528
call fcn.00404d44
mov byte [ebp - 0x45], 0
jmp 0x5540c3
lea eax, [ebp - 0x44]
mov edx, 0x554538
call fcn.00404d44
mov byte [ebp - 0x45], 1
mov bl, 0x43
xor esi, esi
lea eax, [ebp - 0x194]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0x194]
mov edx, 0x55454c
call fcn.00404f88
mov eax, dword [ebp - 0x194]
call fcn.00405178
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x5541de
lea eax, [ebp - 0x19c]
mov edx, ebx
call fcn.00404e8c
push dword [ebp - 0x19c]
push 0x554558
push dword [ebp - 0x44]
lea eax, [ebp - 0x198]
mov edx, 3
call fcn.00405040
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x190]
call fcn.005535a4
mov edi, eax
cmp edi, 0xffffffff
je 0x5541de
lea eax, [ebp - 0x1a0]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0x1a0]
mov edx, 0x554558
call fcn.00404f88
mov edx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x190]
call fcn.005553e4
mov cl, byte [ebp - 0x45]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0055553c
jmp 0x5541c6
inc esi
cmp esi, 0x2710
jg 0x5541d7
lea eax, [ebp - 0x1a4]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0x1a4]
mov edx, 0x554558
call fcn.00404f88
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0x190]
call fcn.005553e4
mov cl, byte [ebp - 0x45]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0055553c
lea edx, [ebp - 0x190]
mov eax, edi
call fcn.00553414
test al, al
jne 0x554182
mov eax, edi
call fcn.00553480
inc ebx
cmp bl, 0x5b
jne 0x5540c5
mov dl, 1
mov eax, dword [0x41c400]
call fcn.00403e50
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x45], 0
je 0x55420a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00553e28
jmp 0x554212
lea eax, [ebp - 0x18]
call fcn.00554b98
mov edx, 0x553cf8
mov eax, dword [ebp - 0x18]
call fcn.0041f360
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
call fcn.00404cac
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 1
jle 0x554265
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0041f044
mov ebx, eax
cmp byte [ebx + 0x15], 3
jne 0x55425e
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x554265
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5544a5
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0041f044
mov ebx, eax
cmp byte [ebp - 0x45], 0
je 0x5542fd
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x554307
inc esi
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.0041f044
push dword [eax + 0x154]
push 0x554580
lea edx, [ebp - 0x1a8]
mov eax, dword [ebx + 0x18]
call fcn.0040aeac
push dword [ebp - 0x1a8]
push 0x55458c
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00405040
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.005556d8
mov edx, ebx
mov eax, dword [ebp - 0x40]
call fcn.0055527c
inc dword [ebp - 0x20]
dec esi
jne 0x5542a5
jmp 0x554307
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00555554
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add eax, dword [ebx + 0x20]
adc edx, dword [ebx + 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x1ac]
mov eax, dword [ebx + 0x18]
call fcn.0040aeac
mov ecx, dword [ebp - 0x1ac]
lea eax, [ebp - 0x3c]
mov edx, 0x554598
call fcn.00404fcc
push 0x5545a8
push dword [ebp - 0x3c]
push 0x5545b4
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00405040
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x5543d3
inc esi
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x1c]
call fcn.0041f044
mov edi, eax
cmp byte [edi + 4], 0
je 0x554389
lea eax, [ebp - 0x38]
mov edx, 0x5545c0
call fcn.00404f88
jmp 0x5543b5
push dword [ebp - 0x38]
push dword [edi + 0x14]
push dword [edi + 0x10]
lea eax, [ebp - 0x1b0]
call fcn.0040aedc
push dword [ebp - 0x1b0]
push 0x5545cc
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00405040
push dword [ebp - 0x38]
push dword [edi + 8]
push 0x5545d8
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00405040
inc dword [ebp - 0x20]
dec esi
jne 0x554367
push dword [ebp - 0x38]
push 0x5545e4
push dword [ebp - 0x3c]
push 0x5545b4
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00405040
push dword [ebp - 0x34]
push 0x5545d8
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00405040
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jl 0x554499
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, dword [ebx + 0x20]
adc edx, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x1b4]
mov eax, dword [ebx + 0x18]
call fcn.0040aeac
push dword [ebp - 0x1b4]
push 0x5545f4
push dword [ebx + 0x10]
push 0x554608
push dword [ebx + 0xc]
push dword [ebx + 8]
lea eax, [ebp - 0x1b8]
call fcn.0040db84
push dword [ebp - 0x1b8]
push 0x554620
push dword [ebx + 0x24]
push dword [ebx + 0x20]
lea eax, [ebp - 0x1bc]
call fcn.0040aedc
push dword [ebp - 0x1bc]
push 0x554638
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.00405040
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x55427f
mov eax, dword [ebp - 0x18]
call fcn.00554974
mov eax, dword [ebp - 0x14]
call fcn.00555dac
mov eax, dword [ebp - 0x14]
call fcn.00403e80
mov eax, dword [ebp - 0x18]
call fcn.00403e80
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.004eede8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x554512
lea eax, [ebp - 0x1bc]
mov edx, 0xb
call fcn.00404cd0
lea eax, [ebp - 0x4c]
call fcn.00404cac
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00404cd0
lea eax, [ebp - 8]
call fcn.00404cac
ret