Function at 0x440640
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dabe1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jl 0x44093a
push str.chrome
push eax
call fcn.004b0345
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x44093a
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x44093a
push 0x5c
push eax
call fcn.004b1e24
mov esi, eax
add esp, 8
test esi, esi
jne 0x4406c7
or esi, edi
jmp 0x4406cc
sub esi, dword [ebp + 8]
sar esi, 1
mov eax, dword [0x545d90]
lea ecx, [eax + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 3
jne 0x4406fb
push 0x89
push 0x88
push 0x5258e8
call fcn.004b05f1
add esp, 0xc
test esi, esi
jle 0x44093a
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004185a0
mov byte [ebp - 4], 2
push str.VisualElementsManifest.xml
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00418660
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x44074d
push 0
lea ecx, [ebp - 0x10]
call fcn.00402850
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4408c1
mov ecx, dword [0x545d90]
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul eax, edx
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 8
jne 0x4407b8
mov eax, edx
mov esi, 0x7d
lea esp, [esp]
test esi, esi
je 0x4407b1
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x4407a0
add eax, esi
mov dword [0x545d90], eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 0xa]
push eax
call fcn.004b0109
add esp, 4
lea ecx, [ebp - 0x24]
push 0
push ecx
push esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x545d90]
lea ecx, [eax + 1]
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xd
jne 0x440820
mov esi, 1
mov eax, esi
mov edx, 0xeb
lea esp, [esp]
dec edx
lea ecx, [eax + esi]
lea esi, [eax]
mov eax, ecx
jns 0x440810
mov dword [0x545d90], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push str.SplashScreen_Image
push ecx
mov byte [eax + ecx], 0
call fcn.004b2e90
mov esi, eax
add esp, 8
test esi, esi
je 0x4408bb
add esi, 0x14
push 0x5c
push esi
call fcn.004b2a80
add esp, 8
test eax, eax
je 0x4408bb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov byte [eax], 0
call fcn.00401470
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.0041ce20
add esp, 0x18
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00402650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402650
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402650
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
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [0x545d90]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 7
jne 0x4408fa
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44091a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44093a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x525970
mov ecx, ebx
call fcn.004025a0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x44096e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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