Function at 0x4101e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fca23
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
push str.._
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404ce0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov al, byte [esi + 0x1c]
mov byte [ebp - 0x48], al
push dword [ebp - 0x48]
push 1
call fcn.00439800
push 1
push 0x510c50
lea ecx, [ebp - 0x28]
call fcn.00404960
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x60000080
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x41028a
xor bl, bl
jmp 0x4104e7
push 0
call fcn.004cad29
add esp, 4
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], edx
call fcn.00434a50
push 0x14
call fcn.004c96bf
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4102ec
call fcn.004059d0
mov edx, eax
mov ecx, 1
lea ebx, [edx + 0x4c]
lock xadd dword [ebx], ecx
mov eax, dword [edx + 0x38]
sub eax, dword [edx + 0x34]
sar eax, 2
cmp ecx, eax
jb 0x4102dd
xor ecx, ecx
mov dword [ebx], ecx
mov eax, dword [edx + 0x34]
push dword [eax + ecx*4]
mov ecx, edi
call fcn.0043c6b0
jmp 0x4102ee
xor edi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
push edi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00440630
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.004082d0
mov edi, dword [esi + 0x2c]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x28], eax
test edi, edi
je 0x410360
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x410360
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x410360
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0x28]
lea edx, [ebp - 0x60]
push edx
lea edx, [esi + 8]
mov dword [ebp - 0x60], 0
push edx
mov ecx, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x5c], 0x52c6cc
push eax
add ecx, 0x14
call fcn.0040f900
cmp dword [ebp - 0x60], 0
je 0x41039c
mov edx, str.assign
lea ecx, [ebp - 0x60]
call fcn.004027d0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov al, byte [esi + 0x1c]
mov byte [ebp - 0x48], al
push dword [ebp - 0x48]
push 1
call fcn.00439800
push 1
push 0x510c50
lea ecx, [ebp - 0x40]
call fcn.00404960
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], 0
push ecx
lea edi, [esi + 0x18]
mov dword [ebp - 0x6c], 0
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, esi
call fcn.00410520
push 0
push dword [edi]
push edx
push eax
call fcn.004d2210
mov edi, eax
mov dword [ebp - 0x48], edx
mov ecx, edi
or ecx, edx
jne 0x41042d
mov byte [ebp - 0x41], cl
jmp 0x410494
mov eax, dword [esi + 0x20]
mov dword [eax + 0x48], edi
mov dword [eax + 0x4c], edx
lea eax, [ebp - 0x28]
mov ecx, dword [esi + 0x20]
add ecx, 4
cmp ecx, eax
je 0x41044d
push 0xffffffffffffffff
push 0
push eax
call fcn.00404a50
mov ecx, dword [esi + 0x20]
push 1
push 0x510c54
add ecx, 4
call fcn.00404960
mov eax, dword [ebp - 0x48]
push eax
push edi
push dword [esi + 0x18]
mov dword [esi + 0x14], eax
movsx eax, byte [esi + 0x1c]
push eax
push str.provider:___C:__bytes_per_sector:_u__size_in_sector:_I64u
push str.data_source_provider_t::init
push 0xb2
push str.d:_slaveworkspace_netdiskgamevirtualdiskserverdata_source_provider.h
push 4
mov dword [esi + 0x10], edi
call fcn.0040eb60
add esp, 0x24
mov byte [ebp - 0x41], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x4104a5
push dword [ebp - 0x40]
call fcn.0044bc50
add esp, 4
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test esi, esi
je 0x4104e4
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4104e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x4104e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov bl, byte [ebp - 0x41]
cmp dword [ebp - 0x14], 0x10
jb 0x4104f8
push dword [ebp - 0x28]
call fcn.0044bc50
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret