Function at 0x40bb30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b70f5
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4e843c]
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
cmp dword [ecx + 0x14], 8
jb 0x40bb66
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0x58]
call fcn.0040b720
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040ba60
xor eax, eax
mov dword [ebp - 0x40], 0
mov ecx, 3
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x48], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x30], 0
cmovb ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 7
call fcn.004046c0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 3
jb 0x40bea5
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x60]
push 0
push 0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
movq qword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x40bea5
cmp dword [ebp - 0x5c], 0
ja 0x40bc04
cmp dword [ebp - 0x60], 0
jbe 0x40bea5
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
cmp eax, 3
jb 0x40bf49
add eax, 0xfffffffd
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
add eax, 6
lea ecx, [ebp - 0x28]
push eax
call fcn.004046c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040ba60
lea ecx, [ebp - 0x28]
call fcn.0040bf60
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
test al, al
je 0x40bc73
mov byte [ebp - 0x79], 0
jmp 0x40bc99
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp ebx, 8
cmovae ecx, edx
test edi, edi
je 0x40bc95
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40bce9
add esi, 2
sub eax, 1
jne 0x40bc87
mov byte [ebp - 0x79], 1
cmp ebx, 8
jb 0x40bccd
lea ebx, [ebx*2 + 2]
mov eax, edx
cmp ebx, 0x1000
jb 0x40bcc3
mov edx, dword [edx - 4]
add ebx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf53
push ebx
push edx
call fcn.00491f22
add esp, 8
mov bl, byte [ebp - 0x79]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x40bea7
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x40bc95
xor eax, eax
mov dword [ebp - 0x78], 0
cmp edi, esi
mov word [ebp - 0x78], ax
mov ecx, esi
mov dword [ebp - 0x68], 0
cmovb ecx, edi
mov dword [ebp - 0x64], 7
cmp ebx, 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, edx
lea ecx, [ebp - 0x78]
push eax
call fcn.004046c0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.0040ba60
cmp dword [ebp - 0x68], 0
je 0x40be5c
mov eax, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
cmp eax, esi
jb 0x40bf49
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x94]
lea eax, [eax + esi*2]
push eax
call fcn.004046c0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406310
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x40bdd6
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bdcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf4e
push edx
push ecx
call fcn.00491f22
add esp, 8
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ebx, 8
mov edi, dword [ebp - 0x18]
cmovae ecx, edx
test edi, edi
je 0x40bdfe
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40be56
add esi, 2
sub eax, 1
jne 0x40bdf0
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x40be48
mov ecx, dword [ebp - 0x78]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf4e
push edx
push ecx
call fcn.00491f22
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp esi, 0xffffffff
jne 0x40bcf2
jmp 0x40bc95
sub esi, ecx
sar esi, 1
jmp 0x40be01
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40be96
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf4e
push edx
push ecx
call fcn.00491f22
add esp, 8
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x79], 0
jmp 0x40bc99
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40bee1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bed7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf53
push edx
push ecx
call fcn.00491f22
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40bf2b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf53
push edx
push ecx
call fcn.00491f22
add esp, 8
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.00491a8a
mov esp, ebp
pop ebp
ret
call fcn.004070c0
call fcn.0049b75b
call fcn.0049b75b
int3