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

Disassembly:
push 0xffffffffffffffff
push 0x510928
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5426a0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea ecx, [esp + 0x50]
call fcn.0047a461
mov dword [esp + 0x74], 0
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bec2
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.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bef1
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.004814aa
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 0x40bfbe
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 0x40bfb4
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
cmp al, 0x41
je 0x40bf9e
cmp al, 0x42
je 0x40bf9e
push esi
call edi
cmp eax, 4
je 0x40bf9e
push esi
call edi
cmp eax, 5
je 0x40bf9e
push esi
call edi
cmp eax, 6
je 0x40bf9e
push esi
call edi
test eax, eax
je 0x40bf9e
push esi
call edi
cmp eax, 2
je 0x40bf9e
mov ecx, dword [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.004816cd
push 0
push esi
call fcn.00498cec
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x40bf60
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x7c]
push 0xffffffffffffffff
add ecx, 0xfac
push 0
call fcn.00481548
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x24], ecx
jg 0x40c066
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.00481527
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 0x40c016
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 0x40c03b
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.0047a485
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 0x40c3f6
cmp ecx, eax
jge 0x40c3f6
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 0x40c0d2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c0c4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c0c4
push eax
call fcn.00404dc0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c0bb
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 0x40c0d2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404cd0
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40beb8
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.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40beb8
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.00410ad0
mov byte [esp + 0x74], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40c18f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c17d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c17d
push eax
call fcn.00404dc0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c174
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 0x40c18f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00404cd0
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 0x40c1b4
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.0040dcb0
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 0x40c227
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c219
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c219
push eax
call fcn.00404dc0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c210
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 0x40c227
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404cd0
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 0x40c24c
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.00405130
mov esi, eax
push 0x5233e4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x80], 8
call fcn.0040dd70
push esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x8c], 9
call fcn.0040dcb0
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 0x40c2f6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c2e8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c2e8
push eax
call fcn.00404dc0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c2df
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 0x40c2f6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404cd0
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 0x40c31b
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 0x40c340
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 0x40c365
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.0047a515
test eax, eax
je 0x40c394
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 0xfb4]
add ecx, 0xfac
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00481698
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 0x40c3b5
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 0x40c3da
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 0x40c062
jmp 0x40bfe3
call fcn.0047c168
int3