Function at 0x409240
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dd41
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4a62c4]
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.0040aed0
mov ecx, eax
test ecx, ecx
je 0x409543
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.00455240
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x4094c3
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.0040d860
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.0040d860
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 0x4093a4
lea ecx, [ebp - 0x12c]
call fcn.004058f0
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0
call fcn.004058f0
jmp 0x4094c3
mov ebx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x154]
shrd ebx, edi, 0x1e
shr edi, 0x1e
test edi, edi
ja 0x409400
jb 0x4093c2
cmp ebx, 0x40
jae 0x409400
push str.Disk_capacity_is_less_than_minimum_requirement_
push 0x4a8890
call fcn.00402970
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0040fda0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0040f160
mov ecx, esi
call fcn.0040e9a0
xor eax, eax
mov dword [ebp - 0x148], eax
jmp 0x40940a
mov dword [ebp - 0x148], 1
push edi
push ebx
lea eax, [ebp - 0x14c]
push 0x485dc4
push eax
call fcn.0040a700
mov edx, dword [ebp - 0x118]
add esp, 0x10
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40945e
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409454
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40954d
push edx
push ecx
call fcn.00446e66
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 0x4094b7
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4094ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409552
push edx
push ecx
call fcn.00446e66
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 0x4094e0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040d950
mov ecx, dword [ebp - 0x150]
push ebx
push 6
call fcn.0040b1a0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409525
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.00447113
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406bd0
call fcn.00458349
call fcn.00458349
int3