Function at 0x180057230
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 [0x1801d11f0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r15, rdx
mov r13, rcx
test rdx, rdx
je 0x18005757c
mov eax, 0xffff
mov word [rsp + 0x20], ax
movzx r10d, ax
cmp rdx, rax
jae 0x180057286
movzx r10d, dx
mov word [rsp + 0x20], dx
jmp 0x1800572b4
cmp byte [rdx], 0x23
jne 0x1800572b4
lea rcx, [rdx + 1]
call fcn.180165790
lea ecx, [rax - 1]
cmp ecx, 0xfffd
ja 0x1800572ae
movzx r10d, ax
mov word [rsp + 0x20], r10w
mov r15d, r10d
jmp 0x1800572b4
movzx r10d, word [rsp + 0x20]
test r13, r13
je 0x18005757c
mov eax, 0x5a4d
cmp word [r13], ax
jne 0x18005757c
movsxd rdx, dword [r13 + 0x3c]
cmp dword [rdx + r13], 0x4550
jne 0x18005757c
lea rcx, [rdx + r13]
test edx, edx
jle 0x1800572fd
cmp edx, 0x10000000
jae 0x1800572fd
cmp dword [rcx], 0x4550
jne 0x1800572fd
add rcx, 0x18
jmp 0x180057301
lea rcx, [r13 + 0x14]
movzx edx, word [rcx]
sub edx, 0x107
je 0x18005757c
sub edx, 4
je 0x180057338
cmp edx, 0x100
jne 0x18005757c
xor ebp, ebp
mov r14d, ebp
cmp dword [rcx + 0x6c], ebp
jbe 0x18005736b
mov eax, dword [rcx + 0x70]
test eax, eax
je 0x18005736b
mov r8d, dword [rcx + 0x74]
jmp 0x18005734d
xor ebp, ebp
mov r14d, ebp
cmp dword [rcx + 0x5c], ebp
jbe 0x18005736b
mov eax, dword [rcx + 0x60]
test eax, eax
je 0x18005736b
mov r8d, dword [rcx + 0x64]
test r8d, r8d
je 0x18005736b
mov edx, dword [rcx + 0x3c]
lea rsi, [rax + r13]
test edx, edx
jne 0x180057360
mov rsi, rbp
test edx, edx
mov r14d, r8d
cmove r14d, ebp
jmp 0x18005736e
mov rsi, rbp
test rsi, rsi
je 0x18005757c
test r14d, r14d
je 0x18005757c
mov edx, dword [rsi + 0x14]
test edx, edx
je 0x18005757c
mov r8d, dword [rsi + 0x24]
cmp r14d, 0x28
ja 0x1800573ae
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 0x18005757c
nop dword [rax + rax]
mov ecx, r12d
movzx r9d, word [rax + rcx*2]
mov edx, dword [r11 + r9*4]
test edx, edx
je 0x18005746e
mov r8d, dword [rbx + rcx*4]
lea rdi, [rdx + r13]
add r8, r13
cmp rdi, rsi
jbe 0x180057539
mov eax, r14d
add rax, rsi
cmp rdi, rax
jae 0x180057539
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x180057420
inc ebx
cmp ebx, 0x100
jae 0x180057469
mov r8d, ebx
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1801480b0
mov ecx, ebp
test ebx, ebx
je 0x18005745e
lea rax, [rsp + 0x40]
nop
cmp byte [rax], 0x2e
je 0x180057485
inc ecx
inc rax
cmp ecx, ebx
jb 0x180057450
movzx r10d, word [rsp + 0x20]
mov r11, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
inc r12d
cmp r12d, dword [rsi + 0x14]
jae 0x18005757c
mov rax, qword [rsp + 0x38]
jmp 0x1800573e0
mov eax, ecx
cmp rax, 0x100
jae 0x1800575a9
lea ebx, [rcx + 1]
mov byte [rsp + rax + 0x40], 0
add rbx, rdi
je 0x18005745e
cmp byte [rbx], 0x23
jne 0x1800574fa
movzx r10d, word [rsp + 0x20]
lea rcx, [rbx + 1]
test rcx, rcx
je 0x180057464
mov eax, 0xffff
cmp r10w, ax
jae 0x180057464
call fcn.180165790
mov ebx, eax
lea ecx, [rbx - 1]
cmp ecx, 0xfffe
ja 0x18005745e
movzx r10d, word [rsp + 0x20]
cmp ebx, r10d
jne 0x180057464
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movzx edx, bx
mov r8b, 1
mov rcx, rax
call fcn.180057230
jmp 0x18005757e
mov r8, rbx
mov rax, r15
sub r8, r15
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180057516
inc rax
test ecx, ecx
jne 0x180057503
test edx, edx
jne 0x18005745e
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8b, 1
mov rdx, rbx
mov rcx, rax
call fcn.180057230
jmp 0x18005757e
mov eax, 0xffff
cmp r15, rax
jbe 0x180057567
mov rax, r15
sub r8, r15
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180057563
inc rax
test ecx, ecx
jne 0x180057550
test edx, edx
je 0x180057577
lea ecx, [r9 + 1]
movzx eax, r10w
cmp ecx, eax
jne 0x18005746e
mov rax, rdi
jmp 0x18005757e
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180146940
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.1801470c0
int3