Function at 0x40d6a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b055
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x55f904]
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 0x40d6d6
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0x58]
call fcn.0040d290
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040d5d0
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.00403460
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 3
jb 0x40da15
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 0x40da15
cmp dword [ebp - 0x5c], 0
ja 0x40d774
cmp dword [ebp - 0x60], 0
jbe 0x40da15
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 0x40dab9
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.00403460
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040d5d0
lea ecx, [ebp - 0x28]
call fcn.0040dad0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
test al, al
je 0x40d7e3
mov byte [ebp - 0x79], 0
jmp 0x40d809
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp ebx, 8
cmovae ecx, edx
test edi, edi
je 0x40d805
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40d859
add esi, 2
sub eax, 1
jne 0x40d7f7
mov byte [ebp - 0x79], 1
cmp ebx, 8
jb 0x40d83d
lea ebx, [ebx*2 + 2]
mov eax, edx
cmp ebx, 0x1000
jb 0x40d833
mov edx, dword [edx - 4]
add ebx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dac3
push ebx
push edx
call fcn.004ee3ca
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 0x40da17
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x40d805
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.00403460
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.0040d5d0
cmp dword [ebp - 0x68], 0
je 0x40d9cc
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 0x40dab9
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.00403460
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.004051a0
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x40d946
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d93c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dabe
push edx
push ecx
call fcn.004ee3ca
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 0x40d96e
mov eax, edi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40d9c6
add esi, 2
sub eax, 1
jne 0x40d960
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x40d9b8
mov ecx, dword [ebp - 0x78]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dabe
push edx
push ecx
call fcn.004ee3ca
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp esi, 0xffffffff
jne 0x40d862
jmp 0x40d805
sub esi, ecx
sar esi, 1
jmp 0x40d971
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40da06
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dabe
push edx
push ecx
call fcn.004ee3ca
add esp, 8
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x79], 0
jmp 0x40d809
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40da51
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40da47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dac3
push edx
push ecx
call fcn.004ee3ca
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 0x40da9b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40da91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dac3
push edx
push ecx
call fcn.004ee3ca
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.004edf30
mov esp, ebp
pop ebp
ret
call fcn.00405f50
call fcn.004f890c
call fcn.004f890c
int3