Function at 0x40be7d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc5aa
mov eax, dword fs:[0]
push eax
mov eax, 0x2044
call fcn.004eaef0
mov eax, dword [0x5475b0]
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 dword [ebp - 0x2014], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
and dword [ebp - 0x201c], 0
mov dword [ebp - 0x2024], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2034]
push 0x512798
call fcn.004062d1
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.0040c369
mov ebx, eax
mov dword [ebp - method.CefStringBase_struct_CefStringTraitsUTF16_.virtual_0], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
neg ebx
lea ecx, [ebp - 0x2034]
sbb bl, bl
call fcn.0040643e
inc bl
je 0x40c29a
mov esi, dword [ebp - 0x2024]
xor ebx, ebx
inc ebx
mov eax, dword [esi + 4]
sub eax, dword [esi]
and eax, 0xfffffffc
cmp eax, 8
jne 0x40c26f
or dword [ebp - 0x2018], 0xffffffff
sub esp, 0x1c
lea ecx, [ebp - 0x2018]
call fcn.00402885
mov eax, dword [0x548750]
mov dword [ebp - 0x2020], eax
push ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040c343
lea edx, [ebp - 0x2044]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov byte [ebp - 4], 3
mov eax, dword [eax + 4]
test eax, eax
je 0x40bfaf
cmp dword [eax + 4], 0
je 0x40bfaf
push ebx
mov ecx, esi
call fcn.0040c343
lea edx, [ebp - 0x2050]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov byte [ebp - 4], 4
mov dword [ebp - 0x201c], ebx
mov eax, dword [eax + 4]
test eax, eax
je 0x40bfa6
mov eax, dword [eax]
mov dword [ebp - 0x2028], eax
jmp 0x40bfb9
and dword [ebp - 0x2028], 0
jmp 0x40bfb9
mov dword [ebp - 0x2028], 0x512700
push 0
mov ecx, esi
call fcn.0040c343
lea edx, [ebp - 0x2034]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
test eax, eax
je 0x40bfe2
mov eax, dword [eax]
jmp 0x40bfe4
xor eax, eax
push dword [ebp - 0x2028]
push eax
lea eax, [ebp - 0x2020]
push 0x512df4
push eax
call fcn.0040306c
add esp, 0x10
lea ecx, [ebp - 0x2034]
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov dword [ebp - 0x2034], esi
call fcn.0040643e
mov dword [ebp - 4], 3
test byte [ebp - 0x201c], 1
je 0x40c036
lea ecx, [ebp - 0x2050]
mov dword [ebp - 0x2050], esi
call fcn.0040643e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2044]
mov dword [ebp - 0x2044], esi
call fcn.0040643e
mov eax, dword [ebp - 0x2020]
lea edx, [ebp - 0x2038]
mov ecx, dword [eax - 8]
and dword [ebp - 0x2038], 0
push ecx
push edx
lea ecx, [ecx*2 + 2]
push ecx
push eax
lea ecx, [ebp - 0x2018]
call fcn.004028b0
and dword [ebp - 0x2024], 0
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.004deff0
add esp, 0xc
cmp dword [ebp - 0x2018], 0xffffffff
je 0x40c22e
push 0
lea eax, [ebp - 0x2024]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x2024], 0
jbe 0x40c22e
mov ebx, dword [ebp - 0x2014]
lea eax, [ebp - 0x2010]
push ecx
push eax
mov ecx, ebx
call fcn.0040bdc0
cmp eax, 2
jne 0x40c213
push dword [ebx + 0xc]
call fcn.004d9ace
pop ecx
cmp eax, 1
jne 0x40c128
push dword [ebx + 0x10]
call fcn.004d9ace
neg eax
sbb eax, eax
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004c4a00
add esp, 0xc
mov byte [ebp - 4], 6
jmp 0x40c1fb
cmp eax, 2
jne 0x40c14e
push dword [ebx + 0x10]
call fcn.004d9ace
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004c4a00
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x40c1fb
cmp eax, 3
jne 0x40c1a9
push dword [ebx + 0x10]
lea ecx, [ebp - 0x2034]
call fcn.0040b79e
lea eax, [ebp - 0x2034]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004c4a40
pop ecx
pop ecx
mov byte [ebp - 4], 9
mov ecx, edi
push dword [eax]
call fcn.0040c3bc
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 8
call fcn.00405310
lea ecx, [ebp - 0x2034]
mov dword [ebp - 0x2034], esi
call fcn.0040643e
jmp 0x40c213
cmp eax, 4
jne 0x40c1ea
push dword [ebx + 0x10]
call fcn.004dabf2
fstp dword [ebp - 0x2014]
fld dword [ebp - 0x2014]
lea eax, [ebp - 0x201c]
push ecx
fstp qword [esp]
push eax
call fcn.004c4940
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, edi
push dword [eax]
call fcn.0040c3bc
lea ecx, [ebp - 0x201c]
jmp 0x40c20a
lea eax, [ebp - 0x2014]
push eax
call fcn.004c4a20
pop ecx
mov byte [ebp - 4], 0xb
push dword [eax]
mov ecx, edi
call fcn.0040c3bc
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 2
call fcn.00405310
lea ecx, [ebp - 0x2020]
call fcn.00403080
lea ecx, [ebp - 0x2018]
call fcn.00402870
xor ebx, ebx
inc ebx
jmp 0x40c29c
lea eax, [ebp - 0x2014]
push eax
call fcn.004c4a20
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, edi
push dword [eax]
call fcn.0040c3bc
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 2
call fcn.00405310
lea ecx, [ebp - 0x2020]
call fcn.00403080
lea ecx, [ebp - 0x2018]
call fcn.00402870
jmp 0x40c29c
lea eax, [ebp - 0x2014]
push eax
call fcn.004c4a20
pop ecx
mov byte [ebp - 4], 0xd
mov ecx, edi
push dword [eax]
call fcn.0040c3bc
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 0
call fcn.00405310
jmp 0x40c29c
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405310
mov al, bl
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.004d9731
mov esp, ebp
pop ebp
ret 0x14