Function at 0x40bb60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e635
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x562904]
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 0x40bb96
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0x58]
call fcn.0040b750
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040ba90
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.004046e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 3
jb 0x40bed5
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 0x40bed5
cmp dword [ebp - 0x5c], 0
ja 0x40bc34
cmp dword [ebp - 0x60], 0
jbe 0x40bed5
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 0x40bf79
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.004046e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040ba90
lea ecx, [ebp - 0x28]
call fcn.0040bf90
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
test al, al
je 0x40bca3
mov byte [ebp - 0x79], 0
jmp 0x40bcc9
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp ebx, 8
cmovae ecx, edx
test edi, edi
je 0x40bcc5
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40bd19
add esi, 2
sub eax, 1
jne 0x40bcb7
mov byte [ebp - 0x79], 1
cmp ebx, 8
jb 0x40bcfd
lea ebx, [ebx*2 + 2]
mov eax, edx
cmp ebx, 0x1000
jb 0x40bcf3
mov edx, dword [edx - 4]
add ebx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf83
push ebx
push edx
call fcn.004f19ca
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 0x40bed7
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x40bcc5
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.004046e0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.0040ba90
cmp dword [ebp - 0x68], 0
je 0x40be8c
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 0x40bf79
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.004046e0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406310
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x40be06
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bdfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf7e
push edx
push ecx
call fcn.004f19ca
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 0x40be2e
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40be86
add esi, 2
sub eax, 1
jne 0x40be20
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x40be78
mov ecx, dword [ebp - 0x78]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf7e
push edx
push ecx
call fcn.004f19ca
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp esi, 0xffffffff
jne 0x40bd22
jmp 0x40bcc5
sub esi, ecx
sar esi, 1
jmp 0x40be31
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40bec6
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bebc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf7e
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x79], 0
jmp 0x40bcc9
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40bf11
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf83
push edx
push ecx
call fcn.004f19ca
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 0x40bf5b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf83
push edx
push ecx
call fcn.004f19ca
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.004f1532
mov esp, ebp
pop ebp
ret
call fcn.004070c0
call fcn.004fbf0c
call fcn.004fbf0c
int3