Function at 0x41fd70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abb93
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4e42d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [eax + 0x14c]
mov esi, ecx
mov dword [ebp - 0x4c], esi
test eax, eax
je 0x420054
lea ebx, [eax + 0x78]
mov edi, esi
call fcn.00420a70
mov ebx, esi
call fcn.004208a0
mov ebx, eax
call fcn.00420920
mov eax, dword [esi]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x41fdf0
mov eax, dword [ebp - 0x34]
add eax, 0x164
push 0x4bc234
push eax
lea ebx, [edi + 8]
call fcn.00402a30
jmp 0x420054
add eax, 0xfffffff0
call fcn.004050f0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], edi
cmp dword [ebx - 4], 1
jle 0x41fe17
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402bc0
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004907a5
add esp, 8
cmp eax, edi
jl 0x4201ff
cmp eax, dword [ebx - 8]
jg 0x4201ff
xor edx, edx
mov dword [ebx - 0xc], eax
push ebx
mov word [ebx + eax*2], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41fe90
mov edi, dword [ebp - 0x34]
add edi, 0x164
mov edx, 0x4bc248
call fcn.00402ae0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420054
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420054
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00402b20
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jl 0x41ff09
push 0x4bc260
push eax
call fcn.0049230f
add esp, 8
cmp eax, edi
je 0x41ff09
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x41ff09
mov edi, dword [ebp - 0x34]
add edi, 0x164
mov edx, 0x4bc268
call fcn.00402ae0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fe64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41fe64
mov ecx, dword [ebp - 0x30]
mov eax, 0x3b
mov dword [ebp - 0x28], 0x3a002f
mov dword [ebp - 0x24], 0x3f002a
mov dword [ebp - 0x20], 0x3c0022
mov dword [ebp - 0x1c], 0x7c003e
mov word [ebp - 0x18], ax
cmp dword [ecx - 0xc], 0
movzx eax, word [ebp + edi*2 - 0x28]
jle 0x41ff5a
push eax
push ecx
call fcn.00490beb
mov ecx, dword [ebp - 0x30]
add esp, 8
test eax, eax
je 0x41ff5a
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x420074
inc edi
cmp edi, 9
jb 0x41ff31
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x4bc294
call fcn.00402b20
lea edx, [ebp - 0x40]
push edx
mov ecx, 0x4bc29c
mov byte [ebp - 4], 2
call fcn.00402b20
mov byte [ebp - 4], 3
xor edi, edi
mov ecx, dword [ebp + edi*4 - 0x44]
test ecx, ecx
je 0x41ffb1
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x41ffb1
push ecx
push eax
call fcn.0049230f
add esp, 8
test eax, eax
je 0x41ffb1
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4200a3
inc edi
cmp edi, 2
jb 0x41ff86
lea ecx, [ebp - 0x3c]
push ecx
push ecx
lea esi, [ebx - 0x10]
mov eax, esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], esp
mov edi, esp
call fcn.004050f0
add eax, 0x10
mov dword [edi], eax
call fcn.004217a0
add esp, 8
test eax, eax
jne 0x420106
mov eax, dword [ebp - 0x34]
add eax, 0x164
push 0x4bc2a4
push eax
mov ebx, 0xa
call fcn.00402a30
push fcn.00402760
push 2
push 4
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 1
call fcn.00491a48
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420054
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x34]
add edi, 0x164
mov edx, 0x4bc280
call fcn.00402ae0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41fef4
mov eax, dword [ebp - 0x34]
add eax, 0x164
push 0x4bc280
push eax
mov ebx, 9
call fcn.00402a30
push fcn.00402760
push 2
push 4
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00491a48
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4200f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
jmp 0x41fe6e
cmp dword [ebp - 0x3c], 0x64
jge 0x420136
mov eax, dword [ebp - 0x34]
add eax, 0x164
push 0x4bc2bc
push eax
mov ebx, 0xb
call fcn.00402a30
push fcn.00402760
push 2
push 4
lea eax, [ebp - 0x44]
push eax
jmp 0x42000c
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0xd2
jle 0x420189
mov edi, dword [ebp - 0x34]
add edi, 0x164
mov edx, 0x4bc2d4
call fcn.00402ae0
push fcn.00402760
push 2
push 4
lea ecx, [ebp - 0x44]
push ecx
mov byte [ebp - 4], 1
call fcn.00491a48
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42002c
mov eax, ebx
lea edi, [ebp - 0x38]
call fcn.00405000
mov esi, dword [ebp - 0x38]
cmp dword [esi - 4], 1
jle 0x4201ab
mov eax, dword [esi - 0xc]
push eax
mov ecx, edi
push ecx
call fcn.00402bc0
mov esi, dword [ebp - 0x38]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x4201c7
push 0x80004005
call fcn.004035c0
mov eax, dword [ebx]
push esi
push eax
call fcn.004909a6
add esp, 8
test eax, eax
jne 0x4201e3
mov edx, 0x4bc1fc
mov eax, ebx
call fcn.0040ae90
push ebx
mov eax, 1
lea ecx, [ebp - 0x3c]
call fcn.00405e40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x420213
test ecx, ecx
jns 0x420209
push 0x80070057
call fcn.004035c0
cmp word [eax], 0x5c
mov byte [ebp - 0x29], 0
je 0x420217
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420236
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x29], 0
je 0x420245
push 0x5c
mov edi, ebx
call fcn.00420af0
lea esi, [ebp - 0x48]
call fcn.004204d0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x48]
cmp dword [edx - 0xc], 0
je 0x42028e
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x420274
push 0x80004005
call fcn.004035c0
push eax
push edx
call fcn.004909a6
add esp, 8
test eax, eax
jne 0x42028e
mov edx, str.StormPlayer9_
mov eax, esi
call fcn.0040ae90
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4202b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00402760
push 2
push 4
lea ecx, [ebp - 0x44]
push ecx
mov byte [ebp - 4], 1
call fcn.00491a48
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4202ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x420056