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

Disassembly:
push 0xffffffffffffffff
push 0x4bc928
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ec6a0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea ecx, [esp + 0x50]
call fcn.00473d14
mov dword [esp + 0x74], 0
call fcn.00474091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b8c2
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.00474091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b8f1
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.0047ad5d
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 0x40b9be
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 0x40b9b4
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
cmp al, 0x41
je 0x40b99e
cmp al, 0x42
je 0x40b99e
push esi
call edi
cmp eax, 4
je 0x40b99e
push esi
call edi
cmp eax, 5
je 0x40b99e
push esi
call edi
cmp eax, 6
je 0x40b99e
push esi
call edi
test eax, eax
je 0x40b99e
push esi
call edi
cmp eax, 2
je 0x40b99e
mov ecx, dword [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.0047afa1
push 0
push esi
call fcn.004923a0
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x40b960
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x7c]
push 0xffffffffffffffff
add ecx, 0xef0
push 0
call fcn.0047ae1c
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x24], ecx
jg 0x40ba66
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.0047adfb
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 0x40ba16
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 0x40ba3b
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.00473d38
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 0x40bdf6
cmp ecx, eax
jge 0x40bdf6
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 0x40bad2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bac4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bac4
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 0x40babb
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 0x40bad2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404d00
call fcn.00474091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b8b8
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.00474091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b8b8
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.0040ed80
mov byte [esp + 0x74], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40bb8f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bb7d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bb7d
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 0x40bb74
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 0x40bb8f
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 0x40bbb4
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.0040d780
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 0x40bc27
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bc19
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bc19
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 0x40bc10
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 0x40bc27
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 0x40bc4c
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 0x4ccf90
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x80], 8
call fcn.0040d840
push esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x8c], 9
call fcn.0040d780
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 0x40bcf6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40bce8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bce8
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 0x40bcdf
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 0x40bcf6
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 0x40bd1b
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 0x40bd40
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 0x40bd65
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.00473dc8
test eax, eax
je 0x40bd94
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 0xef8]
add ecx, 0xef0
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0047af6c
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 0x40bdb5
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 0x40bdda
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 0x40ba62
jmp 0x40b9e3
call fcn.00475a3b
int3