Function at 0x409480
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab241
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4e23d4]
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
mov dword [ebp - 0x150], ecx
mov ebx, 2
call fcn.0040b110
mov ecx, eax
test ecx, ecx
je 0x409783
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14c], esi
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004813a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x409703
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x134], 0
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.0040daa0
mov ecx, 3
mov byte [ebp - 4], 1
cmp dword [ebp - 0x134], ecx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x11c], 0
cmovb ecx, dword [ebp - 0x134]
cmp dword [ebp - 0x130], 0x10
push ecx
cmovae eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
push eax
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040daa0
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x158]
push 0
push ecx
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], bl
cmovae eax, dword [ebp - 0x12c]
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x158], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4095e4
lea ecx, [ebp - 0x12c]
call fcn.00405b30
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0
call fcn.00405b30
jmp 0x409703
mov ebx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x154]
shrd ebx, edi, 0x1e
shr edi, 0x1e
test edi, edi
ja 0x409640
jb 0x409602
cmp ebx, 0x40
jae 0x409640
push str.Disk_capacity_is_less_than_minimum_requirement_
push 0x4e6008
call fcn.00402bb0
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00410040
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0040f400
mov ecx, esi
call fcn.0040ebe0
xor eax, eax
mov dword [ebp - 0x148], eax
jmp 0x40964a
mov dword [ebp - 0x148], 1
push edi
push ebx
lea eax, [ebp - 0x14c]
push 0x4b5c74
push eax
call fcn.0040a940
mov edx, dword [ebp - 0x118]
add esp, 0x10
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40969e
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409694
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40978d
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4096f7
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4096ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409792
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov ebx, dword [ebp - 0x148]
mov esi, dword [ebp - 0x14c]
sub esp, 0x18
mov ecx, esi
mov edx, esp
xor eax, eax
lea edi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409720
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040db90
mov ecx, dword [ebp - 0x150]
push ebx
push 6
call fcn.0040b3e0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409765
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.0045c263
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406e10
call fcn.004844a9
call fcn.004844a9
int3