Function at 0x40bd30
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50ed48
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5416a0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea ecx, [esp + 0x50]
call fcn.00478907
mov dword [esp + 0x74], 0
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bd82
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x74], 1
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bdb1
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.0047f952
push 0
mov byte [esp + 0x78], 3
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
test esi, esi
je 0x40be7e
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x40be74
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
cmp al, 0x41
je 0x40be5e
cmp al, 0x42
je 0x40be5e
push esi
call edi
cmp eax, 4
je 0x40be5e
push esi
call edi
cmp eax, 5
je 0x40be5e
push esi
call edi
cmp eax, 6
je 0x40be5e
push esi
call edi
test eax, eax
je 0x40be5e
push esi
call edi
cmp eax, 2
je 0x40be5e
mov ecx, dword [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.0047fb75
push 0
push esi
call fcn.004971b8
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x40be20
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x7c]
push 0xffffffffffffffff
add ecx, 0x1000
push 0
call fcn.0047f9f0
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x24], ecx
jg 0x40bf26
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.0047f9cf
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bed6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40befb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047892b
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
mov ecx, dword [esp + 0x24]
test ecx, ecx
jl 0x40c2b6
cmp ecx, eax
jge 0x40c2b6
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40bf92
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bf84
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bf84
push eax
call fcn.00404df0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40bf7b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40bf92
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404d00
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40bd78
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x74], 4
call fcn.00478c84
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40bd78
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
push 0x637
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x7c], 5
call fcn.00410b20
mov byte [esp + 0x74], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40c04f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c03d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c03d
push eax
call fcn.00404df0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c034
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [ebp + 0x10]
mov dword [esp + 0x20], ebx
jmp 0x40c04f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00404d00
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x74], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0040dca0
add esp, 0xc
mov byte [esp + 0x74], 7
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40c0e7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c0d9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c0d9
push eax
call fcn.00404df0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c0d0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x40c0e7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404d00
mov byte [esp + 0x74], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c10c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
add ecx, 0xb4
push ecx
mov esi, str._y__m__d
lea edi, [esp + 0x3c]
call fcn.00405160
mov esi, eax
push 0x52239c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x80], 8
call fcn.0040dd60
push esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x8c], 9
call fcn.0040dca0
add esp, 0x18
mov byte [esp + 0x74], 0xa
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40c1b6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c1a8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c1a8
push eax
call fcn.00404df0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c19f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40c1b6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404d00
mov byte [esp + 0x74], 9
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 8
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c200
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 5
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c225
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x58]
call fcn.004789bb
test eax, eax
je 0x40c254
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 0x1008]
add ecx, 0x1000
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0047fb40
lea eax, [ebx - 0x10]
mov byte [esp + 0x74], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c29a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x40bf22
jmp 0x40bea3
call fcn.0047a63a
int3