Function at 0x180056eb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x1801d01d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r15, rdx
mov r13, rcx
test rdx, rdx
je 0x1800571fc
mov eax, 0xffff
mov word [rsp + 0x20], ax
movzx r10d, ax
cmp rdx, rax
jae 0x180056f06
movzx r10d, dx
mov word [rsp + 0x20], dx
jmp 0x180056f34
cmp byte [rdx], 0x23
jne 0x180056f34
lea rcx, [rdx + 1]
call fcn.180165248
lea ecx, [rax - 1]
cmp ecx, 0xfffd
ja 0x180056f2e
movzx r10d, ax
mov word [rsp + 0x20], r10w
mov r15d, r10d
jmp 0x180056f34
movzx r10d, word [rsp + 0x20]
test r13, r13
je 0x1800571fc
mov eax, 0x5a4d
cmp word [r13], ax
jne 0x1800571fc
movsxd rdx, dword [r13 + 0x3c]
cmp dword [rdx + r13], 0x4550
jne 0x1800571fc
lea rcx, [rdx + r13]
test edx, edx
jle 0x180056f7d
cmp edx, 0x10000000
jae 0x180056f7d
cmp dword [rcx], 0x4550
jne 0x180056f7d
add rcx, 0x18
jmp 0x180056f81
lea rcx, [r13 + 0x14]
movzx edx, word [rcx]
sub edx, 0x107
je 0x1800571fc
sub edx, 4
je 0x180056fb8
cmp edx, 0x100
jne 0x1800571fc
xor ebp, ebp
mov r14d, ebp
cmp dword [rcx + 0x6c], ebp
jbe 0x180056feb
mov eax, dword [rcx + 0x70]
test eax, eax
je 0x180056feb
mov r8d, dword [rcx + 0x74]
jmp 0x180056fcd
xor ebp, ebp
mov r14d, ebp
cmp dword [rcx + 0x5c], ebp
jbe 0x180056feb
mov eax, dword [rcx + 0x60]
test eax, eax
je 0x180056feb
mov r8d, dword [rcx + 0x64]
test r8d, r8d
je 0x180056feb
mov edx, dword [rcx + 0x3c]
lea rsi, [rax + r13]
test edx, edx
jne 0x180056fe0
mov rsi, rbp
test edx, edx
mov r14d, r8d
cmove r14d, ebp
jmp 0x180056fee
mov rsi, rbp
test rsi, rsi
je 0x1800571fc
test r14d, r14d
je 0x1800571fc
mov edx, dword [rsi + 0x14]
test edx, edx
je 0x1800571fc
mov r8d, dword [rsi + 0x24]
cmp r14d, 0x28
ja 0x18005702e
cmp edx, dword [rsi + 0x18]
mov eax, edx
cmovbe eax, dword [rsi + 0x18]
imul r14d, eax, 0xff
sub r14d, esi
add r14d, r13d
add r14d, r8d
mov ebx, dword [rsi + 0x20]
mov r12d, ebp
mov r11d, dword [rsi + 0x1c]
add rbx, r13
add r11, r13
mov eax, r8d
add rax, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], rax
test edx, edx
je 0x1800571fc
nop dword [rax + rax]
mov ecx, r12d
movzx r9d, word [rax + rcx*2]
mov edx, dword [r11 + r9*4]
test edx, edx
je 0x1800570ee
mov r8d, dword [rbx + rcx*4]
lea rdi, [rdx + r13]
add r8, r13
cmp rdi, rsi
jbe 0x1800571b9
mov eax, r14d
add rax, rsi
cmp rdi, rax
jae 0x1800571b9
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1800570a0
inc ebx
cmp ebx, 0x100
jae 0x1800570e9
mov r8d, ebx
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.180147b70
mov ecx, ebp
test ebx, ebx
je 0x1800570de
lea rax, [rsp + 0x40]
nop
cmp byte [rax], 0x2e
je 0x180057105
inc ecx
inc rax
cmp ecx, ebx
jb 0x1800570d0
movzx r10d, word [rsp + 0x20]
mov r11, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
inc r12d
cmp r12d, dword [rsi + 0x14]
jae 0x1800571fc
mov rax, qword [rsp + 0x38]
jmp 0x180057060
mov eax, ecx
cmp rax, 0x100
jae 0x180057229
lea ebx, [rcx + 1]
mov byte [rsp + rax + 0x40], 0
add rbx, rdi
je 0x1800570de
cmp byte [rbx], 0x23
jne 0x18005717a
movzx r10d, word [rsp + 0x20]
lea rcx, [rbx + 1]
test rcx, rcx
je 0x1800570e4
mov eax, 0xffff
cmp r10w, ax
jae 0x1800570e4
call fcn.180165248
mov ebx, eax
lea ecx, [rbx - 1]
cmp ecx, 0xfffe
ja 0x1800570de
movzx r10d, word [rsp + 0x20]
cmp ebx, r10d
jne 0x1800570e4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movzx edx, bx
mov r8b, 1
mov rcx, rax
call fcn.180056eb0
jmp 0x1800571fe
mov r8, rbx
mov rax, r15
sub r8, r15
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180057196
inc rax
test ecx, ecx
jne 0x180057183
test edx, edx
jne 0x1800570de
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8b, 1
mov rdx, rbx
mov rcx, rax
call fcn.180056eb0
jmp 0x1800571fe
mov eax, 0xffff
cmp r15, rax
jbe 0x1800571e7
mov rax, r15
sub r8, r15
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800571e3
inc rax
test ecx, ecx
jne 0x1800571d0
test edx, edx
je 0x1800571f7
lea ecx, [r9 + 1]
movzx eax, r10w
cmp ecx, eax
jne 0x1800570ee
mov rax, rdi
jmp 0x1800571fe
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1801455c0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180145d40
int3