Function at 0x406400
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e895e
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x536008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
xor eax, eax
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x108], edi
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0x98], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x406495
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040a350
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
push 0
push 1
push eax
lea ecx, [ebp - 0x9c]
call fcn.004a9280
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 3
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x406555
mov eax, dword [edi]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x40691c
push 0
push 0
push 0
push 4
mov esi, edi
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40691c
mov edi, dword [ebp - 0x9c]
test edi, edi
je 0x4065a3
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0xcc]
call fcn.004a89f0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
xor eax, eax
mov dword [ebp - 0x7c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004a9280
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
cmp dword [ebp - 0xb8], 8
mov eax, dword [ebp - 0x108]
cmovae ecx, dword [ebp - 0xcc]
cmp dword [eax + 0x14], 8
jb 0x406647
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x3c]
push str.__typeshre___shm_s___channel_s
push eax
call fcn.004a42f0
sub esp, 8
mov dword [ebp - 0xe8], 0
mov ecx, esp
mov dword [ebp - 0x108], esp
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x100], xmm0
push 0x24
movq qword [ebp - 0xf0], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.6E76C7F2_5822_4051_A27A_D69F242532B5
mov word [ecx], ax
call fcn.0040a350
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x100]
call fcn.0041bd00
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x101]
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 0x101], 0
call fcn.0041bff0
test al, al
je 0x4066ee
cmp byte [ebp - 0x101], 0
je 0x4066ee
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x100]
call fcn.0041bf70
jmp 0x4067e4
lea ecx, [ebp - 0xb4]
call fcn.004a9680
mov byte [ebp - 4], 0xb
xor eax, eax
push 0x10
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x10c], 0
push str.2345FileShre.exe
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 7
mov word [ebp - 0x120], ax
call fcn.0040a350
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x120]
push eax
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0x54]
call fcn.004a8d90
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb4]
cmp ecx, eax
je 0x4067a5
call fcn.0040a2e0
mov eax, dword [ebp - 0x108]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x54]
call fcn.0040a2e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x120]
call fcn.0040a2e0
push 0
push 0
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0xb4]
call fcn.004a9940
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb4]
call fcn.0040a2e0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x120]
push 0x24
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
push str.E2B92256_7193_4381_837C_6789C07D6643
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 7
mov word [ebp - 0x120], ax
call fcn.0040a350
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x120]
push 0
push 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.004a9280
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x120]
call fcn.0040a2e0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7c]
push 0x4e20
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4068a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
call fcn.0040a2e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x100]
call fcn.0041bdb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0040a2e0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4068ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.0040a2e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.0040a2e0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x20], 0
jmp 0x40692d
mov edi, dword [ebp - 0x9c]
test edi, edi
je 0x40692d
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
je 0x40693d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x406957
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp - 0x24], 0
jmp 0x40695d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.0040a2e0
mov dword [ebp - 4], 0x13
test edi, edi
je 0x406984
push edi
call esi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0040a2e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e62ab
mov esp, ebp
pop ebp
ret 8