Function at 0x4036c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56923e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5cce5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x403795
call fcn.0040d988
mov ecx, eax
test ecx, ecx
je 0x403a58
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push str.Could_not_check_for_free_disk_space
push eax
call fcn.00406040
mov esi, dword [ebp - 0x18]
add esp, 4
mov edi, esp
mov dword [ebp - 0x2c], edi
lea ebx, [esi - 0x10]
push ebx
call fcn.004027a0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00402ac0
add esp, 4
push 0
push 0
push esi
call fcn.00412c77
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x403781
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040d988
mov ecx, eax
test ecx, ecx
je 0x403a58
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
shrd eax, edi, 0x14
mov dword [ebp - 4], 1
shr edi, 0x14
push edi
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push str.Available_disk_space__llu_MiB
push eax
call fcn.00406040
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x2c], esi
push eax
call fcn.004027a0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00402ac0
add esp, 4
call fcn.0040d988
mov ecx, eax
test ecx, ecx
je 0x403a58
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.0040b7c0
test al, al
mov edx, str._s_v1_installer_pro
mov ecx, str._s_v1_installer_home
lea eax, [ebp - 0x1c]
cmove ecx, edx
push str.https:__blenc.alertsec.com
push ecx
push eax
call fcn.00406040
add esp, 0xc
call fcn.0040d988
mov ecx, eax
test ecx, ecx
je 0x403a58
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
call fcn.0040d988
mov ecx, eax
test ecx, ecx
je 0x403a62
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.00405fe0
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408120
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4038b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004081a0
push dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push str.got_size:__d
push eax
call fcn.00406040
mov eax, dword [ebp - 0x14]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x2c], esi
push eax
call fcn.004027a0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00402ac0
mov eax, dword [ebp - 0x38]
mov ecx, 4
mul ecx
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], eax
mov ecx, edx
mov dword [ebp - 0x28], edx
shrd esi, ecx, 0x14
shr ecx, 0x14
cmp dword [ebp - 0x30], edx
ja 0x40394b
jb 0x403925
cmp dword [ebp - 0x34], eax
jae 0x40394b
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push ecx
push esi
push str.Insufficient_disk_space._Needs__llu_MiB__found__llu_MiB
push eax
call fcn.00406040
mov esi, dword [ebp - 0x14]
add esp, 0x18
push 0
push 0
push esi
call fcn.00412c77
jmp 0x403965
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push ecx
push esi
push str.Sufficient_disk_space._Needs__llu_MiB__found__llu_MiB
push eax
call fcn.00406040
mov esi, dword [ebp - 0x14]
add esp, 0x18
push ecx
mov edi, esp
add esi, 0xfffffff0
push esi
mov dword [ebp - 0x20], edi
call fcn.004027a0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00402ac0
mov eax, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x28], eax
ja 0x40399c
jb 0x403996
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x2c], eax
jae 0x40399c
mov byte [ebp - 0xd], 1
jmp 0x4039a0
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0x38], 0
jbe 0x4039b6
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4039b6
push eax
call fcn.0054c09a
add esp, 4
mov edx, dword [ebp - 0x48]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4039d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4039ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x403a43
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402780
push 0x80004005
call fcn.00402780
int3