Function at 0x49f2e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x49f2e9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404f68
mov eax, dword [ebp + 8]
call fcn.00404f68
xor eax, eax
push ebp
push 0x49f8a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049fcd4
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049fce8
xor edx, edx
push ebp
push 0x49f85e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x49f7ff
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.00404aa8
mov edx, dword [ebp + 8]
mov eax, 0x49f8c4
call fcn.004050bc
test eax, eax
jle 0x49f383
mov al, byte [0x49f8c8]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x49f8c4
mov eax, dword [ebp + 8]
call fcn.0040ed1c
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0049fbc4
test al, al
je 0x49f433
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049fa60
cmp dword [ebp - 0x14], 0
je 0x49f3bb
lea eax, [ebp - 0x14]
mov edx, 0x49f8d4
call fcn.00404d80
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x49f8e0
mov eax, dword [ebp - 4]
call fcn.0049ea18
cmp dword [ebp - 0x14], 0
je 0x49f433
mov eax, dword [ebp - 0x14]
call fcn.00409a04
test al, al
je 0x49f433
push dword [ebp - 0x14]
push 0x49f900
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x4a8e14]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404e38
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049ea20
test al, al
je 0x49f433
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x49f4e7
lea edx, [ebp - 0x14]
mov eax, 0x49f90c
call fcn.0040f604
cmp dword [ebp - 0x14], 0
je 0x49f45a
mov eax, dword [ebp - 0x14]
call fcn.00409a04
test al, al
jne 0x49f481
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x49f924
mov eax, dword [ebp - 4]
call fcn.0049ea18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404568
jmp 0x49f865
push dword [ebp - 0x14]
push 0x49f900
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x4a8e14]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404e38
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x49f964
mov eax, dword [ebp - 4]
call fcn.0049ea18
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049ea20
test al, al
je 0x49f4e7
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x49f564
lea edx, [ebp - 0x14]
mov eax, 0x49f980
call fcn.0040f604
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x49f998
mov eax, dword [ebp - 4]
call fcn.0049ea18
cmp dword [ebp - 0x14], 0
je 0x49f564
push dword [ebp - 0x14]
push 0x49f900
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x4a8e14]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404e38
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049ea20
test al, al
je 0x49f564
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
je 0x49f57a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404568
jmp 0x49f865
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403618
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov edi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1c], eax
test edi, edi
jbe 0x49f7f5
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x49f9b8
mov eax, dword [ebp - 4]
call fcn.0049ea18
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add al, 0xbd
sub al, 0x18
jae 0x49f7b1
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404fd8
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00409048
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb0
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00404fd8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409048
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404ec4
jne 0x49f69f
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb0
mov eax, dword [ebp - 0x140]
call fcn.00404d78
inc eax
sub edi, eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb0
mov eax, dword [ebp - 0x144]
call fcn.00404d78
add eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x49f7ed
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
push 0
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x128]
mov edx, 0x49f9d4
mov eax, dword [ebp - 4]
call fcn.0049ea18
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x49f6e0
dec eax
sub eax, 2
jae 0x49f7b1
test bl, bl
jne 0x49f7b1
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x49f6fc
dec eax
sub eax, 2
jae 0x49f7b1
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x49f9f0
mov eax, dword [ebp - 4]
call fcn.0049ea18
mov eax, dword [ebp - 0x1c]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.0049fab4
test al, al
je 0x49f79c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb0
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0x4a8e14]
call fcn.00404d80
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049ea20
test al, al
je 0x49f7b1
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.004095d8
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404afc
mov byte [ebp - 0xd], 1
jmp 0x49f7f5
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x49fa24
mov eax, dword [ebp - 4]
call fcn.0049ea18
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb0
mov eax, dword [ebp - 0x150]
call fcn.00404d78
inc eax
sub edi, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb0
mov eax, dword [ebp - 0x154]
call fcn.00404d78
add eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x49f5b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f865
mov eax, dword [ebp - 4]
call fcn.0049fd50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f8af
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.00404acc
lea eax, [ebp - 0x20]
call fcn.00404aa8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404acc
lea eax, [ebp - 8]
call fcn.00404aa8
lea eax, [ebp + 8]
call fcn.00404aa8
ret