Function at 0x43d630
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c960c
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x51eee0]
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 eax, dword [0x520340]
mov edi, dword [ebp + 8]
lea ecx, [eax + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
mov dword [ebp - 0x82c], 0
cmp edx, 0xa
jne 0x43d693
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 4], 0
call fcn.0043df00
test al, al
jne 0x43d6c7
dec dword [0x5214bc]
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x828]
call fcn.0040bf10
mov esi, eax
mov eax, dword [0x520340]
imul eax, eax
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 5
jne 0x43d706
push 0x1d
push 0x1c
push str._d__d_n
call fcn.004a80de
add esp, 0xc
test esi, esi
je 0x43d74b
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x828]
call fcn.0040bf10
test eax, eax
je 0x43d74b
push 0x4ddf74
mov ecx, edi
call fcn.00401ff0
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x43d99b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43d99b
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004a7560
add esp, 0xc
lea ecx, [ebp - 0x818]
push 0x4ddf74
mov dword [ebp - 0x814], 0x400
call fcn.00401ff0
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
push str.CurrentVersion
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 1
call fcn.00429ec0
or ebx, 0xffffffff
test eax, eax
jne 0x43d934
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d7c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
call fcn.00409950
push 0x4dbe00
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x814], 0x400
call fcn.00401ff0
mov byte [ebp - 4], 2
call fcn.0043db90
test al, al
jne 0x43d827
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
push str.CurrentBuild
lea ecx, [ebp - 0x828]
call fcn.00429ec0
test eax, eax
jne 0x43d8c7
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d852
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00409950
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x814]
push 0x4db31c
push eax
call fcn.0040b800
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x818]
push dword [eax - 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.0040b980
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43d8c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0043db90
test al, al
jne 0x43d911
mov esi, dword [0x520340]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43d934
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x828]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x43d94f
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x828], esi
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x824], 0
call fcn.00404840
mov edx, dword [ebp - 0x818]
add eax, 0x10
add edx, 0xfffffff0
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43d994
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x43d99b
push esi
call ebx
mov eax, edi
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.004a63c4
mov esp, ebp
pop ebp
ret