Function at 0x40bd6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8c99
mov eax, dword fs:[0]
push eax
mov eax, 0x2044
call fcn.004e7570
mov eax, dword [0x5415b0]
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 0x50e788
call fcn.004061c1
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.0040c259
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.0040632e
inc bl
je 0x40c18a
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 0x40c15f
or dword [ebp - 0x2018], 0xffffffff
sub esp, 0x1c
lea ecx, [ebp - 0x2018]
call fcn.00402835
mov eax, dword [0x542750]
mov dword [ebp - 0x2020], eax
push ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040c233
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 0x40be9f
cmp dword [eax + 4], 0
je 0x40be9f
push ebx
mov ecx, esi
call fcn.0040c233
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 0x40be96
mov eax, dword [eax]
mov dword [ebp - 0x2028], eax
jmp 0x40bea9
and dword [ebp - 0x2028], 0
jmp 0x40bea9
mov dword [ebp - 0x2028], 0x50e6f0
push 0
mov ecx, esi
call fcn.0040c233
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 0x40bed2
mov eax, dword [eax]
jmp 0x40bed4
xor eax, eax
push dword [ebp - 0x2028]
push eax
lea eax, [ebp - 0x2020]
push 0x50ede4
push eax
call fcn.0040301c
add esp, 0x10
lea ecx, [ebp - 0x2034]
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov dword [ebp - 0x2034], esi
call fcn.0040632e
mov dword [ebp - 4], 3
test byte [ebp - 0x201c], 1
je 0x40bf26
lea ecx, [ebp - 0x2050]
mov dword [ebp - 0x2050], esi
call fcn.0040632e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2044]
mov dword [ebp - 0x2044], esi
call fcn.0040632e
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.00402860
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.004db6f0
add esp, 0xc
cmp dword [ebp - 0x2018], 0xffffffff
je 0x40c11e
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 0x40c11e
mov ebx, dword [ebp - 0x2014]
lea eax, [ebp - 0x2010]
push ecx
push eax
mov ecx, ebx
call fcn.0040bcb0
cmp eax, 2
jne 0x40c103
push dword [ebx + 0xc]
call fcn.004d61c7
pop ecx
cmp eax, 1
jne 0x40c018
push dword [ebx + 0x10]
call fcn.004d61c7
neg eax
sbb eax, eax
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004c1250
add esp, 0xc
mov byte [ebp - 4], 6
jmp 0x40c0eb
cmp eax, 2
jne 0x40c03e
push dword [ebx + 0x10]
call fcn.004d61c7
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004c1250
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x40c0eb
cmp eax, 3
jne 0x40c099
push dword [ebx + 0x10]
lea ecx, [ebp - 0x2034]
call fcn.0040b68e
lea eax, [ebp - 0x2034]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004c1290
pop ecx
pop ecx
mov byte [ebp - 4], 9
mov ecx, edi
push dword [eax]
call fcn.0040c2ac
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 8
call fcn.00405200
lea ecx, [ebp - 0x2034]
mov dword [ebp - 0x2034], esi
call fcn.0040632e
jmp 0x40c103
cmp eax, 4
jne 0x40c0da
push dword [ebx + 0x10]
call fcn.004d72f2
fstp dword [ebp - 0x2014]
fld dword [ebp - 0x2014]
lea eax, [ebp - 0x201c]
push ecx
fstp qword [esp]
push eax
call fcn.004c1190
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, edi
push dword [eax]
call fcn.0040c2ac
lea ecx, [ebp - 0x201c]
jmp 0x40c0fa
lea eax, [ebp - 0x2014]
push eax
call fcn.004c1270
pop ecx
mov byte [ebp - 4], 0xb
push dword [eax]
mov ecx, edi
call fcn.0040c2ac
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 2
call fcn.00405200
lea ecx, [ebp - 0x2020]
call fcn.00403030
lea ecx, [ebp - 0x2018]
call fcn.00402820
xor ebx, ebx
inc ebx
jmp 0x40c18c
lea eax, [ebp - 0x2014]
push eax
call fcn.004c1270
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, edi
push dword [eax]
call fcn.0040c2ac
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 2
call fcn.00405200
lea ecx, [ebp - 0x2020]
call fcn.00403030
lea ecx, [ebp - 0x2018]
call fcn.00402820
jmp 0x40c18c
lea eax, [ebp - 0x2014]
push eax
call fcn.004c1270
pop ecx
mov byte [ebp - 4], 0xd
mov ecx, edi
push dword [eax]
call fcn.0040c2ac
lea ecx, [ebp - 0x2014]
mov byte [ebp - 4], 0
call fcn.00405200
jmp 0x40c18c
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405200
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.004d5e2a
mov esp, ebp
pop ebp
ret 0x14