Function at 0x480bc0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50acad
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x218], eax
mov eax, str.Mozilla_Firefox_firefox.exe
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x480c3b
movzx esi, ax
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x480c4b
push esi
push eax
lea ecx, [ebp - 0x218]
call fcn.00407600
jmp 0x480c4b
push str.Mozilla_Firefox_firefox.exe
lea ecx, [ebp - 0x218]
call fcn.004026b0
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], 1
call fcn.0040d9b0
lea ecx, [ebp - 0x218]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call fcn.00465fd0
push eax
mov byte [ebp - 4], 3
call fcn.0040d3f0
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
or edi, 0xffffffff
add esp, 0x14
mov bl, al
mov byte [ebp - 4], 2
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x480cab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480cf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x480d17
call fcn.00488ea0
test al, al
jne 0x480d13
push 4
call fcn.004e48e7
mov ecx, dword [0x565ae0]
add esp, 4
mov dword [eax], ecx
mov al, 1
jmp 0x480d71
mov dword [ebp - 4], 4
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
push 0x20219
push str.SOFTWAREMozillaMozilla_Firefox
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.0040b750
test eax, eax
je 0x480d8d
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x480d6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x1fc
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0x21c], 0xff
call fcn.004e6690
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.CurrentVersion
lea ecx, [ebp - 0x228]
call fcn.0040b800
test eax, eax
jne 0x480d5e
push str.SOFTWAREMozillaMozilla_Firefox_
lea ecx, [ebp - 0x218]
call fcn.00401b70
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 6
call fcn.00402c60
push str.Main
lea ecx, [ebp - 0x218]
call fcn.00402c60
mov eax, dword [0x565ae0]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 0x80000001
jns 0x480e25
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x480e3a
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esi, dword [ebp - 0x228]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
je 0x480e57
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
test eax, eax
je 0x480e96
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x480e86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x480d6f
push esi
call ebx
jmp 0x480d6f
call fcn.00488bc0
push 0x20219
push dword [ebp - 0x218]
lea ecx, [ebp - 0x228]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040b750
test eax, eax
jne 0x480f46
push dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004e6690
mov edx, dword [0x565ae0]
add esp, 0xc
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x21c], 0xff
cmp edx, 1
jne 0x480f1f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x565ae0]
mov edx, 7
test eax, eax
cmove ecx, edx
mov dword [0x565ae0], ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.PathToExe
lea ecx, [ebp - 0x228]
call fcn.0040b800
test eax, eax
je 0x480f61
call fcn.00488e50
lea ecx, [ebp - 0x218]
call fcn.00401fa0
lea ecx, [ebp - 0x228]
call fcn.0040a3e0
jmp 0x480d6f
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401b70
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 7
call fcn.0040d3f0
add esp, 4
lea ecx, [ebp - 0x21c]
mov bl, al
call fcn.00401fa0
lea ecx, [ebp - 0x218]
call fcn.00401fa0
lea ecx, [ebp - 0x228]
call fcn.0040a3e0
test bl, bl
je 0x480d6f
mov al, 1
jmp 0x480d71