Function at 0x40dab0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b605
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x55e904]
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 0x40dae6
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0x58]
call fcn.0040d6a0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040d9e0
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.004039a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 3
jb 0x40de25
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 0x40de25
cmp dword [ebp - 0x5c], 0
ja 0x40db84
cmp dword [ebp - 0x60], 0
jbe 0x40de25
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 0x40dec9
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.004039a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040d9e0
lea ecx, [ebp - 0x28]
call fcn.0040dee0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
test al, al
je 0x40dbf3
mov byte [ebp - 0x79], 0
jmp 0x40dc19
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp ebx, 8
cmovae ecx, edx
test edi, edi
je 0x40dc15
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40dc69
add esi, 2
sub eax, 1
jne 0x40dc07
mov byte [ebp - 0x79], 1
cmp ebx, 8
jb 0x40dc4d
lea ebx, [ebx*2 + 2]
mov eax, edx
cmp ebx, 0x1000
jb 0x40dc43
mov edx, dword [edx - 4]
add ebx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded3
push ebx
push edx
call fcn.004ee8e8
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 0x40de27
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x40dc15
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.004039a0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.0040d9e0
cmp dword [ebp - 0x68], 0
je 0x40dddc
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 0x40dec9
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.004039a0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.004055e0
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x40dd56
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dece
push edx
push ecx
call fcn.004ee8e8
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 0x40dd7e
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40ddd6
add esi, 2
sub eax, 1
jne 0x40dd70
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x40ddc8
mov ecx, dword [ebp - 0x78]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dece
push edx
push ecx
call fcn.004ee8e8
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp esi, 0xffffffff
jne 0x40dc72
jmp 0x40dc15
sub esi, ecx
sar esi, 1
jmp 0x40dd81
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40de16
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dece
push edx
push ecx
call fcn.004ee8e8
add esp, 8
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x79], 0
jmp 0x40dc19
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40de61
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded3
push edx
push ecx
call fcn.004ee8e8
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 0x40deab
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dea1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ded3
push edx
push ecx
call fcn.004ee8e8
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.004ee450
mov esp, ebp
pop ebp
ret
call fcn.00406390
call fcn.004f8e2c
call fcn.004f8e2c
int3