Function at 0x536ca0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x58eb7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [esp + 4], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
cmp dword [ecx], 0
push esi
push eax
jne 0x536cea
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00515680
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x30]
call fcn.00515680
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 1
call fcn.00516d30
push 0
push 0
push str.file:__
lea ecx, [esp + 0x38]
call fcn.00515c50
test eax, eax
jne 0x536d26
push 7
push eax
lea ecx, [esp + 0x34]
call fcn.00515ce0
push ebp
push edi
push 0
mov ebp, 0x5c
push ebp
push 0x2f
lea ecx, [esp + 0x40]
call fcn.00515160
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
test esi, esi
je 0x536e62
cmp word [eax + 0xc], 0x7e
jne 0x536e62
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.00515ce0
mov edx, dword [0x639c54]
push 0
push edx
lea ecx, [esp + 0x3c]
call fcn.00516410
mov eax, dword [esp + 0x34]
cmp dword [eax], 2
jle 0x536d99
cmp word [eax + 0xe], 0x3a
jne 0x536d99
cmp word [eax + 0x10], bp
je 0x536d99
push 2
push ebp
lea ecx, [esp + 0x3c]
call fcn.005164d0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp word [eax + ecx*2 + 0xa], bp
jne 0x536db1
add ecx, 0xffffffff
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x3c]
call fcn.00515ce0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.00515680
push str..LNK
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005161b0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1a]
call fcn.0052d710
push 0
lea ecx, [esp + 0x1a]
push 0
push ecx
mov byte [esp + 0x34], 3
call fcn.00535ec0
add esp, 0xc
lea ecx, [esp + 0x16]
movzx esi, ax
mov byte [esp + 0x28], 2
call fcn.0052d7f0
test si, si
pop edi
pop ebp
je 0x536e1c
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x30]
call fcn.00514cd0
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00515680
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x20], 1
call fcn.005144a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.005144a0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
cmp esi, 1
jle 0x536e9b
movzx eax, word [eax + 0xc]
push eax
call fcn.0048e6c3
add esp, 4
test eax, eax
mov eax, dword [esp + 0x34]
je 0x536e9b
cmp word [eax + 0xe], 0x3a
jne 0x536e9b
cmp esi, 3
jne 0x536d99
cmp word [eax + 0x10], bp
jne 0x536d99
jmp 0x536db1
cmp esi, 2
jl 0x536d99
cmp word [eax + 0xc], bp
jne 0x536d99
movzx ecx, word [eax + 0xe]
push ecx
call fcn.0056ee57
movzx edi, ax
push edi
call fcn.0048e6c3
add esp, 8
test eax, eax
je 0x536d95
cmp esi, 2
je 0x536edf
mov eax, dword [esp + 0x34]
cmp word [eax + 0x10], bp
jne 0x536d99
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [edi - 0x41]
mov edx, 1
shl edx, cl
test eax, edx
je 0x536d95
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0xe]
push ecx
push 0
lea ecx, [esp + 0x3c]
call fcn.005152c0
push 0x3a
push 1
lea ecx, [esp + 0x3c]
call fcn.005152c0
cmp esi, 2
jne 0x536f29
push ebp
lea ecx, [esp + 0x38]
call fcn.00516150
jmp 0x536f32
cmp esi, 3
jne 0x536d95
mov eax, dword [esp + 0x34]
cmp word [eax + 0x10], bp
je 0x536db1
jmp 0x536d99