Function at 0x4068c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4136d8
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x41d008]
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 esi, ecx
mov ecx, 0x41ec44
call fcn.00412f13
mov dword [ebp - 0x54], 0
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
test esi, esi
je 0x4070f7
mov edi, dword [esi + 0x24]
test edi, edi
je 0x406f0a
cmp dword [esi], 0
je 0x406f0a
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x488], eax
test eax, eax
je 0x406f0a
push 4
mov ecx, 0x41d7ec
call fcn.0040f3d0
mov ebx, eax
test ebx, ebx
je 0x406a1c
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x34]
push dword [esi]
push 0x416f34
push eax
call fcn.0040f940
add esp, 0xc
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push 0x73
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
push eax
push 4
call fcn.0040f420
cmp ebx, 1
jbe 0x4069c5
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x406a08
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4069fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov ebx, dword [ebp - 0x488]
push 0x41d3d0
push ebx
call fcn.0041220f
add esp, 8
mov dword [esi + 0x18], eax
test eax, eax
jne 0x406b16
push 2
mov ecx, 0x41d7ec
call fcn.0040f3d0
mov ebx, eax
test ebx, ebx
je 0x406b0f
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x34]
push 0x21
push 0x416f60
call fcn.00403610
push 0x77
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push eax
push 2
call fcn.0040f420
cmp ebx, 1
jbe 0x406ab8
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x406afb
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406af1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406af1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov ecx, edi
jmp 0x4070f1
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, eax
mov dword [esi + 0x1c], ecx
test ecx, ecx
jne 0x406bb0
push 2
mov ecx, 0x41d7ec
call fcn.0040f3d0
mov ebx, eax
test ebx, ebx
je 0x406b0f
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x34]
push 0x21
push 0x416fa8
call fcn.00403610
push 0x81
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push eax
push 2
call fcn.0040f420
cmp ebx, 1
jbe 0x406ab8
jmp 0x406aaa
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x24], 0
je 0x406ef8
nop dword [eax]
cmp dword [edi + 0x2c], 0
jne 0x406ef8
lea ebx, [esi + 4]
push ebx
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x488]
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xffffffffffffffff
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x406ef8
cmp eax, 2
je 0x406ef8
cmp eax, 1
jne 0x406e97
cmp dword [edi + 0x2c], 0
jne 0x406ef8
push 0
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
mov ecx, 0x41d7ec
mov ebx, eax
call fcn.0040f3d0
mov dword [ebp - 0x484], eax
test eax, eax
je 0x406d2a
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 5
lea eax, [ebp - 0x34]
push ebx
push dword [ebp - 0x480]
push str.RCImplPortServer::RealReceiveRoutine:_result_d__errorCode_d
push eax
call fcn.0040f940
add esp, 0x10
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push 0xae
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
push eax
push 5
call fcn.0040f420
cmp dword [ebp - 0x484], 1
jbe 0x406cd5
lea eax, [ebp - 0x34]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x406d16
mov ecx, dword [ebp - 0x34]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406d0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069f8
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp dword [ebp - 0x480], 0
jne 0x406d48
cmp ebx, 0x6d
je 0x406ec5
cmp ebx, 0xe6
je 0x406ec5
mov edx, dword [edi + 0x24]
test edx, edx
je 0x406e97
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x480], ebx
cmp dword [ebx], 0x31487350
jne 0x406e7e
cmp dword [ebx + 4], 0x32497350
mov dword [ebp - 0x480], ebx
jne 0x406e7e
push 4
mov ecx, 0x41d7ec
call fcn.0040f3d0
mov dword [ebp - 0x484], eax
test eax, eax
je 0x406e69
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 6
lea eax, [ebx + 0x21c]
push eax
push dword [ebx + 0x218]
lea eax, [ebp - 0x4c]
push dword [esi]
push 0x417070
push eax
call fcn.0040f940
add esp, 0x14
lea eax, [ebp - 0x4c]
mov ecx, 0x41d7ec
push 0xc8
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
push eax
push 4
call fcn.0040f420
cmp dword [ebp - 0x484], 1
jbe 0x406e14
lea eax, [ebp - 0x4c]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x406e55
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406e4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069f8
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov eax, dword [ebx + 0x218]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x18]
mov edx, dword [edi + 0x24]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x54]
test eax, eax
push dword [edi + 0x28]
mov ecx, dword [ebp - 0x50]
cmovne ecx, eax
push ecx
push dword [ebp - 0x480]
push dword [esi]
call edx
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x24], 0
jne 0x406bd0
push esi
mov ecx, edi
call fcn.00407120
mov eax, 1
jmp 0x4070f9
mov eax, dword [esi]
test eax, eax
je 0x406ef8
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x406ef8
push dword [edi + 0x28]
lea edx, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0x31487350
push 0x428
push edx
push eax
mov dword [ebp - 0x478], 0x33497350
call ecx
push esi
mov ecx, edi
call fcn.00407120
mov eax, 1
jmp 0x4070f9
mov eax, dword [0x41d7ec]
test eax, eax
je 0x406ffa
push ecx
mov ecx, 0x41d7ec
call fcn.0040eb20
mov eax, dword [0x41d7ec]
cmp byte [eax + 0x54], 0
je 0x406ffa
cmp dword [eax + 0x58], 2
jb 0x406ffa
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x4c]
push 0x28
push 0x416d40
call fcn.00403610
push 0x66
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x4c]
mov ecx, 0x41d7ec
push eax
push 2
call fcn.0040f420
test bl, bl
je 0x406fa0
lea eax, [ebp - 0x4c]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x406fe1
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406aeb
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov eax, dword [0x41d7ec]
mov dword [ebp - 0x38], 7
cmp dword [esi + 0x24], 0
je 0x4070f7
test eax, eax
je 0x4070ee
push ecx
mov ecx, 0x41d7ec
call fcn.0040eb20
mov eax, dword [0x41d7ec]
cmp byte [eax + 0x54], 0
je 0x4070ee
cmp dword [eax + 0x58], 2
jb 0x4070ee
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
push 0x24
push 0x416ee8
call fcn.00403610
push 0x69
push str.RC::DmAvCore::RCImplPortServer::RealReceiveRoutine
push str.d:jenkinsworkspacepc_2345mpcsafe_build_2_rhinoprotect_framework_src_vbaselib_src_namedpipe_rcimplportserver.cpp
lea eax, [ebp - 0x4c]
mov ecx, 0x41d7ec
push eax
push 2
call fcn.0040f420
test bl, bl
je 0x407099
lea eax, [ebp - 0x4c]
mov ecx, 0x41d7ec
push eax
call fcn.0040f750
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x4070da
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4070d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406aeb
push edx
push ecx
call fcn.00411fb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov ecx, dword [esi + 0x24]
push esi
call fcn.00407120
xor eax, eax
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.00411cf3
mov esp, ebp
pop ebp
ret