Function at 0x4ce646
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
and dword [esp + 4], 0
xorps xmm0, xmm0
and dword [esp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
mov byte [esp + 0x2c], 0
cmp dword [edi + 0x34], 0xffffffff
jne 0x4ce6e2
call fcn.004ce4d6
test al, al
jne 0x4ce6e2
and dword [esp + 0x44], 0
lea eax, [esp + 0x60]
and dword [esp + 0x54], 0
lea ecx, [esp + 0x44]
push 0x94
push str.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_bnl_tact_sourcegamemisc_handlersmemorybufferhandler.cpp
mov dword [esp + 0x50], str.FileBufferHandler___Execute_error
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x200
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], str.FileBufferHandler
call fcn.00492518
lea ecx, [esp + 0x44]
call fcn.0042e42b
mov dword [esp + 0x10], 0xf
jmp 0x4ce95f
test byte [ebx], 2
je 0x4ce7e6
mov eax, dword [edi + 0x38]
cmp eax, dword [ebx + 0x20]
jne 0x4ce6fb
mov eax, dword [edi + 0x3c]
cmp eax, dword [ebx + 0x24]
je 0x4ce715
mov eax, dword [ebx + 0x20]
push 0
cdq
push edx
push eax
push dword [edi + 0x34]
call fcn.0057464f
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.00571e41
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ce745
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 0x4ce7e6
call fcn.00563d3e
lea esi, [edi + 8]
cmp dword [esi + 0x14], 0x10
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jb 0x4ce75b
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.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_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.00492518
push esi
lea ecx, [esp + 0x48]
call fcn.004928ff
push dword [esp + 0xc]
call fcn.005ce553
pop ecx
movzx ecx, byte [edi + 0x20]
mov esi, eax
push ecx
lea ecx, [esp + 0x48]
call fcn.00492bd6
push esi
mov ecx, eax
call fcn.004928ff
lea ecx, [esp + 0x44]
call fcn.0042e42b
xor eax, eax
cmp dword [esp + 0xc], 0x1c
setne al
add eax, 0xe
mov dword [esp + 0x10], eax
test byte [ebx], 8
je 0x4ce7f9
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 0x4ce95f
lea esi, [ebx + 0x20]
push 0x7f59e0
mov ecx, esi
call fcn.004ce11a
test al, al
je 0x4ce827
cmp dword [ebx + 0x38], 0
je 0x4ce951
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
jmp 0x4ce8a4
cmp dword [ebx + 0x38], 0
je 0x4ce951
push dword [edi + 0x2c]
lea eax, [esp + 0x34]
push dword [edi + 0x28]
push eax
call fcn.004ddbe1
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 0x4ce874
ja 0x4ce85d
cmp ecx, dword [edi + 0x28]
jbe 0x4ce874
push 0xbd
push 0x79a188
push str.cspan.offset__cspan.size___m_filesize
call fcn.0055c77a
add esp, 0xc
mov ecx, dword [esi]
cmp ecx, dword [edi + 0x38]
jne 0x4ce883
mov ecx, dword [esi + 4]
cmp ecx, dword [edi + 0x3c]
je 0x4ce89c
mov eax, dword [esi]
push 0
cdq
push edx
push eax
push dword [edi + 0x34]
call fcn.0057464f
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 0x4ce8b0
test eax, eax
je 0x4ce951
push eax
push dword [ebx + 0x38]
push dword [edi + 0x34]
call fcn.00574010
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x4ce940
lea esi, [edi + 8]
cmp dword [esi + 0x14], 0x10
jb 0x4ce8d0
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.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_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.00492518
push esi
lea ecx, [esp + 0x48]
call fcn.004928ff
call fcn.00563d3e
lea ecx, [esp + 0x44]
push dword [eax]
call fcn.00492a9a
lea ecx, [esp + 0x44]
call fcn.0042e42b
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