Function at 0x409480
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd683
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x517280]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 8
jne 0x4094d6
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push str.LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1JR0hBb0dCQU1nbVFCVkVVNlNQY1FHN082RVpqVXlmSFNJc2EzaWNlQUJnYnZWRHJMakd3UWM4SFp1Qlo3ZkEKREE3UG5KZDJsK1ppWEErUTI0ZEw2ZHg3UURSdVMrWVVMTUVFUUYxdXprZHk0OC8zSnNzei85Zk1PTVlQbUY5Uwp1M0NsSGNtaG0veGVNQ2hGWS9sMHY5WGthUURITW5PazNyOC9HczJPcWhzNkNOczQ4VlBsQWdFRAotLS0tLUVORCBSU0EgUFVCTElDIEtFWS0tLS0tCg
lea ecx, [ebp - 0x14]
call fcn.00401c40
push ecx
mov ecx, esp
push str.cb96859380859085d9
mov dword [ebp - 4], 0
call fcn.00401c40
lea eax, [ebp - 0x1c]
push eax
call fcn.00446a00
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004467a0
add esp, 0x14
mov esi, dword [eax]
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x40955c
test esi, 0xffff0000
jne 0x40955c
movzx esi, si
push 0
push esi
call fcn.00403010
add esp, 8
test eax, eax
je 0x409565
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00406a50
jmp 0x409565
push esi
lea ecx, [ebp - 0x10]
call fcn.004026c0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409588
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4095a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x409627
push ecx
mov ecx, esp
push str.cb8d8a828b878980888d8a81d9
call fcn.00401c40
lea eax, [ebp - 0x24]
push eax
call fcn.00446a00
push eax
lea eax, [ebp - 0x20]
push edi
push eax
mov byte [ebp - 4], 7
call fcn.004467a0
add esp, 0x14
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004026c0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409607
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409627
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20
call fcn.0049dabd
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x40964b
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00421580
mov edi, eax
jmp 0x40964d
xor edi, edi
mov byte [ebp - 4], 6
call fcn.00409970
test al, al
jne 0x40966e
mov eax, dword [0x517280]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [0x517280], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00421800
test edi, edi
je 0x409690
mov ecx, edi
call fcn.00421600
push edi
call fcn.0049da8e
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4096b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4096d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret