Function at 0x4041e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x589c40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041ced4
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404223
push 0x80004005
call fcn.0040ab10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x410]
mov dword [ebp - 4], ebx
call fcn.00418428
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 3
jl 0x4043af
mov edx, dword [esi + 0x588]
or edx, dword [esi + 0x58c]
je 0x4043af
call fcn.0041ced4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40427d
push 0x80004005
call fcn.0040ab10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 3
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00408e80
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00409960
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4042ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0041ced4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4042f4
push 0x80004005
call fcn.0040ab10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40432f
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
or eax, ecx
jne 0x404388
xor ebx, ebx
mov dword [esi + 0x590], ebx
mov dword [esi + 0x594], ebx
mov eax, dword [ebp - 0x28]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404357
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404379
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 - 0x10]
add eax, 0xfffffff0
jmp 0x4043c5
xor eax, eax
push eax
push edx
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.00516730
push ebx
push edi
push edx
push eax
call fcn.00516730
mov dword [esi + 0x590], eax
mov dword [esi + 0x594], edx
xor ebx, ebx
jmp 0x40433b
mov dword [esi + 0x590], ebx
mov dword [esi + 0x594], ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret