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

Disassembly:
push 0xffffffffffffffff
push 0x56f408
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b16b0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea ecx, [esp + 0x50]
call fcn.0047bef4
mov dword [esp + 0x74], 0
call fcn.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c012
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.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c041
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.00482f29
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 0x40c10e
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 0x40c104
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
cmp al, 0x41
je 0x40c0ee
cmp al, 0x42
je 0x40c0ee
push esi
call edi
cmp eax, 4
je 0x40c0ee
push esi
call edi
cmp eax, 5
je 0x40c0ee
push esi
call edi
cmp eax, 6
je 0x40c0ee
push esi
call edi
test eax, eax
je 0x40c0ee
push esi
call edi
cmp eax, 2
je 0x40c0ee
mov ecx, dword [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.0048314c
push 0
push esi
call fcn.0049a7cc
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x40c0b0
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.00482fc7
mov eax, dword [esp + 0x44]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x24], ecx
jg 0x40c1b6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.00482fa6
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 0x40c166
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 0x40c18b
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.0047bf18
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 0x40c546
cmp ecx, eax
jge 0x40c546
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 0x40c222
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c214
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c214
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 0x40c20b
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 0x40c222
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404d00
call fcn.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c008
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.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c008
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.00410db0
mov byte [esp + 0x74], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40c2df
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c2cd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c2cd
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 0x40c2c4
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 0x40c2df
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 0x40c304
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.0040df30
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 0x40c377
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c369
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c369
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 0x40c360
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 0x40c377
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 0x40c39c
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.00405140
mov esi, eax
push 0x592740
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x80], 8
call fcn.0040dff0
push esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x8c], 9
call fcn.0040df30
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 0x40c446
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c438
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c438
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 0x40c42f
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 0x40c446
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 0x40c46b
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 0x40c490
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 0x40c4b5
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.0047bfa8
test eax, eax
je 0x40c4e4
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 0x1008]
add ecx, 0x1000
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00483117
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 0x40c505
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 0x40c52a
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 0x40c1b2
jmp 0x40c133
call fcn.0047dc2b
int3