Function at 0x41d830
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x41d839
mov eax, dword [ebp - 4]
add esp, 0xfffff460
mov eax, 0x4d51c0
call fcn.004b9d54
mov edx, dword [ebp + 8]
cmp byte [edx + 0x402], 0
je 0x41d879
push 0x465
push 0x4d3beb
push str._m_bSilent
call fcn.004c3638
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3b0], 0
jne 0x41d893
mov eax, dword [ebp - 0x80]
mov dword fs:[0], eax
jmp 0x41ddd8
mov edx, dword [ebp + 8]
cmp byte [edx + 0x403], 0
je 0x41d934
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x380]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x384]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x388]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x390]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x394]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x378]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
mov eax, edx
jmp 0x41ddd8
mov word [ebp - 0x70], 0xc
mov ecx, dword [ebp + 8]
push dword [ecx + 0x420]
lea eax, [ebp - 0x28]
push eax
call fcn.00422528
add esp, 8
lea edx, [ebp - 0x28]
push edx
inc dword [ebp - 0x64]
call fcn.0040214c
pop ecx
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004c76a8
mov edx, eax
inc dword [ebp - 0x64]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3b0]
call fcn.00492748
dec dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004c7828
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401a2c
add esp, 8
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x398]
mov edx, dword [edx + 0x40]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3b0]
sub edx, dword [ecx + 0x40]
add edx, 0xfffffff9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3b0]
call fcn.00491da0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x378]
mov eax, dword [eax + 0x28c]
call fcn.004a6e58
mov dword [ebp - 0x84], eax
mov edx, dword [ebp + 8]
push dword [edx + 0x420]
lea ecx, [ebp - 0x1310]
push ecx
call fcn.00423e9c
add esp, 8
lea eax, [ebp - 0x1310]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x8c], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x88], edx
xor ecx, ecx
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x84]
jge 0x41da8f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x378]
mov eax, dword [eax + 0x28c]
mov edx, dword [ebp - 0x90]
call fcn.004a6e90
call fcn.004a6744
test al, al
je 0x41da7b
push dword [ebp - 0x90]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x420]
lea eax, [ebp - 0x2580]
push eax
call fcn.00423d24
add esp, 0xc
lea edx, [ebp - 0x2580]
fld qword [edx + 0x10]
fadd qword [ebp - 0x8c]
fstp qword [ebp - 0x8c]
inc dword [ebp - 0x90]
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [ebp - 0x84]
jl 0x41da25
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push str._.1f_MB
lea edx, [ebp - 0x25c0]
push edx
call fcn.004bcd18
add esp, 0x10
mov word [ebp - 0x70], 0x18
lea edx, [ebp - 0x25c0]
lea eax, [ebp - 0x30]
call fcn.004c76a8
mov edx, eax
inc dword [ebp - 0x64]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3b4]
call fcn.00492748
dec dword [ebp - 0x64]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004c7828
mov word [ebp - 0x70], 0x24
mov ecx, dword [ebp + 8]
push dword [ecx + 0x420]
lea eax, [ebp - 0x58]
push eax
call fcn.00422528
add esp, 8
lea edx, [ebp - 0x58]
push edx
inc dword [ebp - 0x64]
call fcn.0040214c
pop ecx
push eax
lea ecx, [ebp - 0x26c4]
push ecx
call fcn.004b99d8
add esp, 8
dec dword [ebp - 0x64]
push 2
lea eax, [ebp - 0x58]
push eax
call fcn.00401a2c
add esp, 8
lea edx, [ebp - 0x26c4]
push edx
call sub.SHLWAPI.DLL_PathStripToRootA
push 8
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.004b9850
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push 0
push 0
lea edx, [ebp - 0x26c4]
push edx
call sub.KERNEL32.DLL_GetDiskFreeSpaceExA
push 0
push 0x100000
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
call fcn.004c10fb
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str._d_MB
lea eax, [ebp - 0x25c0]
push eax
call fcn.004bcd18
add esp, 0x10
mov word [ebp - 0x70], 0x30
lea edx, [ebp - 0x25c0]
lea eax, [ebp - 0x5c]
call fcn.004c76a8
mov edx, eax
inc dword [ebp - 0x64]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3b8]
call fcn.00492748
dec dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004c7828
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x380]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x384]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x388]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x390]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x394]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [ebp + 8]
push dword [edx + 0x420]
call fcn.0042256c
pop ecx
test al, al
je 0x41dc77
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov byte [ebp - 0x99], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x401], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x404], 0
xor edx, edx
mov dword [ebp - 0xa0], edx
jmp 0x41dd51
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x378]
mov eax, dword [eax + 0x28c]
mov edx, dword [ebp - 0xa0]
call fcn.004a6e90
call fcn.004a6744
test al, al
je 0x41dd41
mov byte [ebp - 0x99], 0
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x400], 0
je 0x41dd0b
push dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
push dword [eax + 0x420]
lea edx, [ebp - 0x3934]
push edx
call fcn.00423d24
add esp, 0xc
lea ecx, [ebp - 0x3934]
cmp dword [ecx + 8], 0
je 0x41dd4b
mov eax, dword [ebp + 8]
mov byte [eax + 0x404], 1
jmp 0x41dd4b
push dword [ebp - 0xa0]
mov edx, dword [ebp + 8]
push dword [edx + 0x420]
lea ecx, [ebp - 0x4ba4]
push ecx
call fcn.00423d24
add esp, 0xc
lea eax, [ebp - 0x4ba4]
cmp dword [eax + 4], 0
je 0x41dd4b
mov edx, dword [ebp + 8]
mov byte [edx + 0x404], 1
jmp 0x41dd4b
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x401], 0
inc dword [ebp - 0xa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x378]
mov eax, dword [eax + 0x28c]
call fcn.004a6e58
cmp eax, dword [ebp - 0xa0]
jg 0x41dc9f
cmp byte [ebp - 0x99], 0
je 0x41dd8a
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x390]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [ebp + 8]
cmp byte [edx + 0x400], 0
je 0x41ddce
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x398]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x378]
mov eax, dword [eax + 0x28c]
call fcn.004a6e58
test eax, eax
jne 0x41ddce
mov dl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x390]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret