Function at 0x4ce3f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xorps xmm0, xmm0
mov dword [esp + 0x10], ebx
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
cmp dword [edi + 0x34], 0xffffffff
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
jne 0x4ce48e
call fcn.004ce27f
test al, al
jne 0x4ce48e
push 0x94
lea eax, [esp + 0x64]
mov dword [esp + 0x48], ebx
push str..._bnl_tact_sourcegamemisc_handlersMemoryBufferHandler.cpp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], str.FileBufferHandler___Execute_error
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x200
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], str.FileBufferHandler
call fcn.00496d52
lea ecx, [esp + 0x44]
call fcn.0042bc04
mov dword [esp + 0x10], 0xf
jmp 0x4ce70e
mov ebx, dword [ebp + 0xc]
test byte [ebx], 2
je 0x4ce595
mov eax, dword [edi + 0x38]
cmp eax, dword [ebx + 0x20]
jne 0x4ce4aa
mov eax, dword [edi + 0x3c]
cmp eax, dword [ebx + 0x24]
je 0x4ce4c4
mov eax, dword [ebx + 0x20]
push 0
cdq
push edx
push eax
push dword [edi + 0x34]
call fcn.005645bf
cdq
add esp, 0x10
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
push dword [ebx + 0x28]
push dword [ebx + 0x38]
push dword [edi + 0x34]
call fcn.00563614
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ce4f4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4ce595
call fcn.005555d1
lea esi, [edi + 8]
cmp dword [esi + 0x14], 0x10
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jb 0x4ce50a
mov esi, dword [esi]
and dword [esp + 0x44], 0
lea eax, [esp + 0x60]
and dword [esp + 0x54], 0
lea ecx, [esp + 0x44]
push 0xa8
push str..._bnl_tact_sourcegamemisc_handlersMemoryBufferHandler.cpp
mov dword [esp + 0x50], str.Failed_to_execute___write_fail:__s_readonly:__d____s
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x200
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], str.FileBufferHandler
call fcn.00496d52
push esi
lea ecx, [esp + 0x48]
call fcn.004971d9
push dword [esp + 0xc]
call fcn.005af7cc
pop ecx
movzx ecx, byte [edi + 0x20]
mov esi, eax
push ecx
lea ecx, [esp + 0x48]
call fcn.004974c0
push esi
mov ecx, eax
call fcn.004971d9
lea ecx, [esp + 0x44]
call fcn.0042bc04
xor eax, eax
cmp dword [esp + 0xc], 0x1c
setne al
add eax, 0xe
mov dword [esp + 0x10], eax
test byte [ebx], 8
je 0x4ce5a8
mov eax, dword [edi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x24], eax
test byte [ebx], 4
je 0x4ce70e
lea esi, [ebx + 0x20]
push 0x701820
mov ecx, esi
call fcn.004cdf02
test al, al
je 0x4ce5d6
cmp dword [ebx + 0x38], 0
je 0x4ce700
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
jmp 0x4ce653
cmp dword [ebx + 0x38], 0
je 0x4ce700
push dword [edi + 0x2c]
lea eax, [esp + 0x34]
push dword [edi + 0x28]
push eax
call fcn.004dd827
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
adc eax, dword [esp + 0x34]
cmp eax, dword [edi + 0x2c]
jb 0x4ce623
ja 0x4ce60c
cmp ecx, dword [edi + 0x28]
jbe 0x4ce623
push 0xbd
push 0x6a7620
push str.cspan.offset__cspan.size___m_filesize
call fcn.0054db53
add esp, 0xc
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x38]
jne 0x4ce632
mov ecx, dword [esi + 4]
cmp ecx, dword [edi + 0x3c]
je 0x4ce64b
mov eax, dword [esi]
push 0
cdq
push edx
push eax
push dword [edi + 0x34]
call fcn.005645bf
cdq
add esp, 0x10
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x4ce65f
test eax, eax
je 0x4ce700
push eax
push dword [ebx + 0x38]
push dword [edi + 0x34]
call fcn.0056d67a
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x4ce6ef
lea esi, [edi + 8]
cmp dword [esi + 0x14], 0x10
jb 0x4ce67f
mov esi, dword [esi]
and dword [esp + 0x44], 0
lea eax, [esp + 0x60]
and dword [esp + 0x54], 0
lea ecx, [esp + 0x44]
push 0xc9
push str..._bnl_tact_sourcegamemisc_handlersMemoryBufferHandler.cpp
mov dword [esp + 0x50], str.Failed_to_execute___read_fail:__s___d
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x200
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], str.MemoryBufferHandler
call fcn.00496d52
push esi
lea ecx, [esp + 0x48]
call fcn.004971d9
call fcn.005555d1
lea ecx, [esp + 0x44]
push dword [eax]
call fcn.00497382
lea ecx, [esp + 0x44]
call fcn.0042bc04
mov dword [esp + 0x10], 0xf
mov eax, ebx
cdq
add dword [edi + 0x38], eax
mov dword [esp + 0x18], eax
adc dword [edi + 0x3c], edx
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x10]
push 8
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8