Function at 0x180042c10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov rbx, rdx
mov rdx, qword [rcx + 0xd0]
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], al
lea r8d, [rax + 9]
call fcn.1800533a4
mov rdx, rbx
mov rcx, rdi
call fcn.180043530
cmp byte [rdi + 0xe1], 0
mov rcx, qword [rdi + 0xb8]
je 0x180042c7f
mov eax, dword [rdi + 0xf0]
add rcx, rax
mov qword [rdi + 0xb8], rcx
cmp byte [rdi + 0x90], 0
je 0x180042ca4
mov rcx, qword [rdi + 0x88]
call fcn.180049380
movsxd rcx, eax
add qword [rdi + 0xb8], rcx
mov ecx, dword [rdi + 0xb8]
mov r8d, ecx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.180040f80
mov rdx, qword [rdi + 0x40]
movabs rsi, 0x6db6db6db6db6db7
mov r8, qword [rdi + 0x48]
movzx r9d, byte [rdi + 0x90]
sub r8, rdx
sar r8, 3
imul r8, rsi
dec r8
mov qword [rdi + 0xc8], r8
test r9b, r9b
je 0x180042d02
imul rcx, r8, 0x38
mov eax, dword [rdx + rcx + 0xc]
mov dword [rdi + 0xf8], eax
mov rax, qword [rdx + rcx + 0x28]
mov qword [rdi + 0x100], rax
cmp byte [rdi + 0xe1], 0
je 0x180042e48
imul rax, r8, 0x38
mov ecx, dword [rax + rdx + 0xc]
mov dword [rdi + 0x108], ecx
test r9b, r9b
je 0x180042d34
mov rcx, qword [rdi + 0x88]
call fcn.180049380
add dword [rdi + 0x108], eax
mov rax, qword [rbx]
mov r9, qword [rdi + 0xe8]
sub r9, qword [0x180084c68]
mov rdx, qword [rax]
cmp rdx, rax
je 0x180042e48
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdi + 0x108]
sub rax, r9
add qword [rdx + 0x240], rax
mov rax, qword [rdx + 0x230]
mov rcx, qword [rax]
cmp rcx, rax
je 0x180042de8
nop
mov eax, dword [rdi + 0x108]
sub rax, r9
add qword [rcx + 0x340], rax
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180042dbc
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x180042db7
cmp rcx, qword [rax + 0x10]
jne 0x180042db7
mov rcx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180042da4
mov rcx, rax
jmp 0x180042ddf
mov r8, qword [rax]
mov rcx, rax
cmp byte [r8 + 0x19], 0
jne 0x180042ddf
nop dword [rax]
mov rax, qword [r8]
mov rcx, r8
mov r8, rax
cmp byte [rax + 0x19], 0
je 0x180042dd0
cmp rcx, qword [rdx + 0x230]
jne 0x180042d80
mov rax, qword [rdx + 0x10]
cmp byte [rax + 0x19], 0
je 0x180042e18
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x180042e13
nop dword [rax]
cmp rdx, qword [rax + 0x10]
jne 0x180042e13
mov rdx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x180042e00
mov rdx, rax
jmp 0x180042e3f
mov rcx, qword [rax]
mov rdx, rax
cmp byte [rcx + 0x19], 0
jne 0x180042e3f
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x180042e30
cmp rdx, qword [rbx]
jne 0x180042d60
mov rdx, rbx
mov rcx, rdi
call fcn.180042fa0
test eax, eax
je 0x180042f74
mov rax, qword [rbx]
xor r9d, r9d
mov rcx, qword [rdi + 0x40]
mov rax, qword [rax]
mov r10, qword [rax + 0x240]
mov rax, qword [rdi + 0x48]
sub rax, rcx
sar rax, 3
imul rax, rsi
test rax, rax
je 0x180042ec4
mov r8d, r9d
mov edx, dword [r8 + rcx + 0xc]
cmp rdx, r10
ja 0x180042ea5
mov eax, dword [r8 + rcx + 8]
add eax, edx
cmp rax, r10
jbe 0x180042ea5
or dword [r8 + rcx + 0x24], 0xc0000000
mov rcx, qword [rdi + 0x40]
inc r9
mov rax, qword [rdi + 0x48]
add r8, 0x38
sub rax, rcx
sar rax, 3
imul rax, rsi
cmp r9, rax
jb 0x180042e86
imul rax, qword [rdi + 0xc8], 0x38
cmp byte [rdi + 0xe0], 0
mov ebx, dword [rax + rcx + 0xc]
je 0x180042edf
add ebx, dword [rdi + 0xd8]
cmp byte [rdi + 0xe1], 0
je 0x180042eee
add ebx, dword [rdi + 0xf0]
cmp byte [rdi + 0x90], 0
je 0x180042f05
mov rcx, qword [rdi + 0x88]
call fcn.180049380
add ebx, eax
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x180042f52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180042f52
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x180042f52
cmp dword [rax], 0x4550
jne 0x180042f52
mov ecx, 0x10b
cmp word [rax + 0x18], cx
jne 0x180042f52
mov dword [rax + 0x80], ebx
mov eax, dword [rdi + 0xb0]
lea ecx, [rax + rax*4]
mov rax, qword [rdi + 0x30]
shl ecx, 2
mov dword [rax + 0x84], ecx
jmp 0x180042f72
mov rax, qword [rdi + 0x38]
mov dword [rax + 0x90], ebx
mov eax, dword [rdi + 0xb0]
lea ecx, [rax + rax*4]
mov rax, qword [rdi + 0x38]
shl ecx, 2
mov dword [rax + 0x94], ecx
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180049ad0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret