Function at 0x407c60
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x00422180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, edx
mov dword [0x004225ec], ecx
mov r8d, edx
mov edx, ecx
lea rcx, [rsp + 0x30]
call fcn.00407380
cmp qword [rax + 0x18], 0x10
jb 0x407c96
mov rax, qword [rax]
mov r8, rax
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rcx, qword [rsp + 0x48]
mov qword [0x004225b8], rax
cmp rcx, 0x10
jb 0x407d11
lea rax, [rcx + 1]
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x407d05
test cl, 0x1f
je 0x407cd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x407ce5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x407cf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x407d02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.00415b00
mov rax, qword [0x004225b8]
test rax, rax
je 0x407dc4
mov edx, dword [0x004225ec]
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.004076e0
cmp qword [rax + 0x18], 0x10
jb 0x407d37
mov rax, qword [rax]
mov r8, rax
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rcx, qword [rsp + 0x48]
mov qword [0x004225c0], rax
cmp rcx, 0x10
jb 0x407db2
lea rax, [rcx + 1]
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x407da6
test cl, 0x1f
je 0x407d76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x407d86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x407d96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x407da3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.00415b00
mov rax, qword [0x004225c0]
test rax, rax
jne 0x407dd9
mov rcx, qword [0x004225b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00416530
add rsp, 0x60
pop rbx
ret
mov edx, dword [0x004225ec]
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.004074a0
cmp qword [rax + 0x18], 0x10
jb 0x407df6
mov rax, qword [rax]
xor edx, edx
mov r8, rax
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rcx, qword [rsp + 0x48]
mov qword [0x004225c8], rax
cmp rcx, 0x10
jb 0x407e6f
lea rax, [rcx + 1]
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x407e63
test cl, 0x1f
je 0x407e33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x407e43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x407e53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x407e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.00415b00
mov rax, qword [0x004225c8]
test rax, rax
jne 0x407ea3
mov rcx, qword [0x004225b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x004225c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00416530
add rsp, 0x60
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], 0x60e4
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x004225d8], rax
test rax, rax
jne 0x407f07
mov rcx, qword [0x004225b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x004225c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x004225c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00416530
add rsp, 0x60
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.00416530
add rsp, 0x60
pop rbx
ret