Function at 0x140056b44
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140148f00]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor ebx, ebx
mov qword [rsp + 0x20], r8
mov r14, rdx
mov r15, rcx
test rdx, rdx
je 0x140056def
lea edi, [rbx + 0x40]
xor edx, edx
mov r8d, edi
lea rcx, [rsp + 0x70]
call fcn.14010b8b4
mov esi, 0x108
lea rcx, [rbp - 0x50]
mov r8d, esi
xor edx, edx
call fcn.14010b8b4
mov r9d, edi
lea rdx, [rsp + 0x70]
mov r8, r14
mov rcx, r15
call fcn.140056680
test al, al
je 0x140056def
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x140056def
movsxd r8, dword [rbp - 0x54]
lea rdx, [rbp - 0x50]
add r8, r14
mov r9d, esi
mov rcx, r15
call fcn.140056680
test al, al
je 0x140056def
cmp dword [rbp - 0x50], 0x4550
jne 0x140056def
mov esi, dword [rbp + 0x38]
test esi, esi
je 0x140056def
cmp dword [rbp + 0x3c], ebx
je 0x140056def
mov r13d, dword [rbp + 0x3c]
lea r9d, [rbx + 4]
mov edx, r13d
mov qword [rsp + 0x48], r13
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r13d
mov qword [rsp + 0x40], rsi
mov rdi, rax
mov rcx, r15
lea rax, [rsi + r14]
mov rdx, rdi
mov r8, rax
mov qword [rsp + 0x38], rax
mov r12d, esi
call fcn.140056680
test al, al
je 0x140056dde
mov ecx, dword [rdi + 0x20]
mov rsi, rdi
mov r13d, dword [rdi + 0x1c]
sub rsi, r12
mov r12d, dword [rdi + 0x24]
add rcx, rsi
add r12, rsi
mov qword [rsp + 0x28], rcx
add r13, rsi
mov r15d, ebx
cmp dword [rdi + 0x18], ebx
jbe 0x140056dde
mov eax, r15d
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov edx, dword [rcx + rax*4]
add rdx, rsi
mov qword [rsp + 0x68], rbx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bl
jne 0x140056cb3
lea rcx, [rsp + 0x50]
call fcn.140057e48
mov rax, qword [rsp + 0x20]
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140056cd8
mov rdx, qword [rax]
cmp qword [rsp + 0x68], 0xf
lea rcx, [rsp + 0x50]
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140056d47
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140056d30
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056d2b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056dcd
call fcn.14010a9a0
inc r15d
cmp r15d, dword [rdi + 0x18]
jae 0x140056dde
mov rcx, qword [rsp + 0x28]
jmp 0x140056c8f
mov rax, qword [rsp + 0x30]
movzx eax, word [r12 + rax*2]
mov esi, dword [r13 + rax*4]
add rsi, r14
cmp rsi, qword [rsp + 0x38]
jb 0x140056d85
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x48]
add rax, r14
cmp rsi, rax
ja 0x140056d85
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140056d99
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, rsi
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140056dd9
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056dd4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056dd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010a9a0
mov rax, rbx
jmp 0x140056df1
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14010a620
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret