Function at 0x43b320
Capabilities:
Get disk size
Get file size
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jl 0x43b657
push 0x4defa4
push eax
call fcn.004a87ef
add esp, 8
test eax, eax
je 0x43b657
mov ecx, dword [ebp + 0xc]
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x43b657
mov esi, dword [0x521340]
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ebx, 0x12
idiv ebx
lea ebx, [edi + 5]
cmp edx, 7
jne 0x43b3df
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 + 0x63]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a63b0
push eax
call fcn.004a8200
mov ecx, dword [ebp + 0xc]
add esp, 8
push 0x5c
push ecx
call fcn.004a8749
mov esi, eax
add esp, 8
test esi, esi
jne 0x43b3f5
or esi, 0xffffffff
jmp 0x43b3fa
sub esi, dword [ebp + 0xc]
sar esi, 1
mov eax, dword [0x521340]
imul eax, eax
cdq
mov ecx, 0xd
idiv ecx
cmp edx, 2
jne 0x43b417
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
test esi, esi
jle 0x43b657
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040bdf0
mov ecx, dword [0x521340]
mov esi, 6
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
mov byte [ebp - 4], 1
cmp edx, 3
jne 0x43b453
dec ecx
mov dword [0x521340], ecx
push str.VisualElementsManifest.xml
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b790
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
mov byte [ebp - 4], 2
jge 0x43b48b
push 0
lea ecx, [ebp - 0x10]
call fcn.00408680
mov eax, dword [ebp - 0x10]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x43b617
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [eax + 0xa]
push ecx
mov dword [ebp - 0x18], eax
call fcn.004a80b2
mov ecx, dword [0x521340]
mov ebx, eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
add esp, 4
cmp edx, 4
jne 0x43b4f3
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x521340]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 3
jne 0x43b53c
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebx], 0
call fcn.0043f160
test al, al
jne 0x43b58d
mov esi, dword [0x521340]
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.004a63b0
push eax
call fcn.004a8200
add esp, 8
push str.SplashScreen_Image
push ebx
call fcn.004aa180
mov esi, eax
add esp, 8
test esi, esi
je 0x43b608
call fcn.0043f1e0
test al, al
jne 0x43b5b0
inc dword [0x522360]
add esi, 0x14
push 0x5c
push esi
call fcn.004aa050
add esp, 8
test eax, eax
je 0x43b608
sub esp, 0x18
mov ecx, esp
push esi
mov byte [eax], 0
call fcn.00401000
mov esi, dword [ebp + 8]
push esi
call fcn.0044ff60
add esp, 0x1c
lea ecx, [ebp - 0x10]
call fcn.00402720
lea ecx, [ebp - 0x14]
call fcn.00402720
lea ecx, [ebp + 0xc]
call fcn.00402720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043f0c0
test al, al
jne 0x43b617
dec dword [0x522364]
mov edx, dword [ebp - 0x10]
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 0x43b637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b657
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
push 0x4dec70
mov ecx, ebx
call fcn.00401ff0
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x43b687
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret