Function at 0x405d40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8a15
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x537008]
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 - 0x84], xmm0
mov dword [ebp - 0x1c0], edi
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov dword [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x405dc6
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x1c8], 0
xor eax, eax
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1d8]
call fcn.0040a390
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1d8]
push 0
push 1
push eax
lea ecx, [ebp - 0x84]
call fcn.004a9460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d8]
call fcn.0040a320
xor eax, eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], 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 0x405e9e
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 0x40632c
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 0x40632c
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x405eec
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0xb4]
call fcn.004a8bd0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
xor eax, eax
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
push eax
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004a9460
lea ecx, [ebp - 0x1b8]
call fcn.00402ae0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x15c]
call fcn.00402ae0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x158], 2
mov dword [ebp - 0x150], 3
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x15c], 1
cmp ecx, eax
je 0x405fb7
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405fa8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.0040a390
cmp dword [ebp - 0xa0], 8
lea eax, [ebp - 0xb4]
push dword [ebp - 0xa4]
cmovae eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x134]
push eax
call fcn.0040a390
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0042edd0
mov byte [ebp - 4], 0xb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c0], esp
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
movups xmmword [ebp - 0xe8], xmm0
xor eax, eax
movq qword [ebp - 0xd8], xmm0
push 0x24
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.364EEC90_8BB3_4834_BE8D_26E3E1C8C1AA
mov word [ecx], ax
call fcn.0040a390
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe8]
call fcn.0041beb0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x1b9]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 0x1b9], 0
call fcn.0041c1a0
test al, al
je 0x40608e
cmp byte [ebp - 0x1b9], 0
je 0x40608e
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0041c120
jmp 0x406187
lea ecx, [ebp - 0x9c]
call fcn.004a9860
mov byte [ebp - 4], 0xe
xor eax, eax
push 0xf
mov dword [ebp - 0x1c8], 0
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1c4], 0
push str.2345MPCSafe.exe
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
call fcn.0040a390
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x1d8]
push eax
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x3c]
call fcn.004a8f70
add esp, 4
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x9c]
cmp ecx, eax
je 0x406145
call fcn.0040a320
mov eax, dword [ebp - 0x1c0]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3c]
call fcn.0040a320
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1d8]
call fcn.0040a320
push 0
push 0
lea edx, [ebp - 0x100]
lea ecx, [ebp - 0x9c]
call fcn.004a9b20
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x9c]
call fcn.0040a320
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1d8]
push 0x24
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], eax
push str.E2B92256_7193_4381_837C_6789C07D6643
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
call fcn.0040a390
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x1d8]
push 0
push 1
push eax
lea ecx, [ebp - 0x44]
call fcn.004a9460
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1d8]
call fcn.0040a320
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
push 0x7530
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 - 0x44]
test eax, eax
je 0x40624b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3c]
call fcn.0040a320
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe8]
call fcn.0041bf60
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x100]
call fcn.0040a320
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x11c]
call fcn.0040a320
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x134]
call fcn.0040a320
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14c]
call fcn.0040a320
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x178]
call fcn.0040a320
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x190]
call fcn.0040a320
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1a8]
call fcn.0040a320
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4062ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.0040a320
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb4]
call fcn.0040a320
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x20], 0
jmp 0x40633d
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x40633d
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
je 0x40634d
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 0x406367
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp - 0x24], 0
jmp 0x40636d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.0040a320
mov dword [ebp - 4], 0x1d
test edi, edi
je 0x406394
push edi
call esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0040a320
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.004e647b
mov esp, ebp
pop ebp
ret 8