Function at 0x4170e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5995
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x51eee0]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x520340]
imul eax, eax
cdq
mov ecx, 0x17
idiv ecx
mov esi, dword [ebp + 8]
cmp edx, 5
jne 0x417142
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0
lea ecx, [ebp - 0x14c]
call fcn.00442860
push str.success
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0
call fcn.00442820
lea eax, [ebp - 0x13c]
push eax
push 0x4d968c
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 1
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.00442a70
push 0x4da42c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x128]
push eax
call fcn.0044ee90
add esp, 0x1c
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 3
call fcn.00427c90
mov ebx, dword [0x520340]
mov byte [ebp - 4], 4
lea ecx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0xf
idiv ecx
cmp edx, 0xb
jne 0x41729a
xor eax, eax
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0xe0]
jmp 0x417210
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], ecx
mov edi, edi
lea ecx, [eax + 1]
lea edi, [edx + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x124]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [ebp - 0x11c]
push esi
push 0x4d9680
call fcn.004a80de
mov eax, dword [ebp - 0x120]
mov edx, edi
add ebx, 4
add esp, 8
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], ebx
cmp edx, 0x11
jge 0x41727d
mov ebx, dword [0x520340]
jmp 0x417220
inc eax
mov dword [ebp - 0x120], eax
cmp eax, 3
jge 0x41729a
mov ebx, dword [0x520340]
mov ecx, dword [ebp - 0x124]
jmp 0x417210
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x17c]
mov dword [0x520848], 0
call fcn.004280a0
test al, al
jne 0x417438
call fcn.00417a80
test al, al
jne 0x4172e8
push 4
call fcn.004a5bed
add esp, 4
mov esi, eax
call fcn.004a6f99
mov dword [esi], eax
push esi
mov dword [0x520340], eax
call fcn.004a5bbe
add esp, 4
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x17c]
mov dword [0x520848], 1
call fcn.004280a0
test al, al
jne 0x417438
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x120], eax
mov eax, 0x4da430
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x417353
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x417365
push esi
push eax
lea ecx, [ebp - 0x120]
call fcn.00407650
jmp 0x417365
push 0x1d
push 0x4da430
lea ecx, [ebp - 0x120]
call fcn.00409950
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 6
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 8
call fcn.00442d00
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.00442a70
cmp dword [ebp - 0xe4], 0x10
jb 0x4173d7
push dword [ebp - 0xf8]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4173fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 3
call fcn.00427f30
mov edx, dword [ebp - 0x128]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41742f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x417536
mov ecx, dword [0x520340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 0xb
jne 0x417467
call fcn.004a6f99
mov ecx, dword [0x520340]
cmp ecx, eax
jne 0x417467
dec ecx
mov dword [0x520340], ecx
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 3
call fcn.00427f30
mov edx, dword [ebp - 0x128]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41752f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41752f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0xd
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x124], esi
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xe
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x417586
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x4175a5
xor ecx, ecx
jmp 0x4175bd
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x11c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4175b0
sub ecx, dword [ebp - 0x11c]
push ecx
push edx
mov ecx, ebx
call fcn.00401460
lea eax, [ebp - 0x120]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea eax, [esi - 0x10]
lea ebx, [edx - 0x10]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x128], eax
cmp ebx, eax
je 0x4176a9
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x11c], ecx
jl 0x417694
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x417694
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x41762d
cmp ecx, dword [ebx]
jne 0x41762d
mov esi, ebx
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41766a
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x417641
call fcn.0040c2e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004a7195
add esp, 0x10
mov ecx, dword [ebp - 0x11c]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x417689
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x124], esi
jmp 0x4176a9
push dword [edx - 0xc]
lea ecx, [ebp - 0x124]
push edx
call fcn.00409950
mov esi, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4176cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xe4], 0x10
mov byte [ebp - 4], 0xe
jb 0x4176e7
push dword [ebp - 0xf8]
call fcn.004a5bbe
add esp, 4
mov ebx, dword [ebp - 0x12c]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x417708
call fcn.0040c2e0
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0xd
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x417726
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x100], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x118], 0x4d9684
jb 0x41774b
push dword [ebp - 0x114]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x100], 0xf
mov dword [ebp - 0x104], 0
mov byte [ebp - 0x114], 0
call fcn.00444ab0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
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.004a63c4
mov esp, ebp
pop ebp
ret