Function at 0x180040900
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rbx
mov eax, 0x1ff0
call fcn.180061240
sub rsp, rax
mov qword [rsp + 0x1fe0], 0xfffffffffffffffe
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x1fe8], rax
cmp qword [rsp + 0x2000], 0
je 0x180040c93
cmp qword [rsp + 0x2000], 0xffffffffffffffff
je 0x180040c93
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x2000]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180040994
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18004099b
xor eax, eax
jmp 0x180040c99
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x2000]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x1800409c8
xor eax, eax
jmp 0x180040c99
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
mov word [rsp + 0x24], ax
movsx eax, word [rsp + 0x24]
test eax, eax
jg 0x1800409f2
xor eax, eax
jmp 0x180040c99
mov rax, qword [rsp + 0x48]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x48]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 1
xor eax, eax
mov word [rsp + 0x50], ax
jmp 0x180040a37
movzx eax, word [rsp + 0x50]
add ax, 1
mov word [rsp + 0x50], ax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
movsx ecx, word [rsp + 0x50]
movsx eax, word [rsp + 0x24]
cmp ecx, eax
jge 0x180040aae
cmp qword [rsp + 0x40], 0
je 0x180040aa0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1800413f0
nop
lea rcx, [rsp + 0x58]
call fcn.180038760
movzx eax, al
test eax, eax
jne 0x180040a96
lea rdx, [0x18006b844]
lea rcx, [rsp + 0x58]
call fcn.18001cb80
test eax, eax
jne 0x180040a8b
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
call fcn.180004e30
nop
lea rcx, [rsp + 0x58]
call fcn.1800017c0
cmp dword [rsp + 0x28], 0
jne 0x180040aa9
jmp 0x180040aae
jmp 0x180040a1b
cmp dword [rsp + 0x28], 0
je 0x180040abc
xor eax, eax
jmp 0x180040c99
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x40], 0
je 0x180040c8a
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x2000]
add rax, rcx
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x1fc8], 0xcc
mov byte [rsp + 0x1fc9], 0xcc
mov byte [rsp + 0x1fca], 0xcc
mov byte [rsp + 0x1fcb], 0x48
mov byte [rsp + 0x1fcc], 0x89
mov byte [rsp + 0x1fcd], 0x5c
mov byte [rsp + 0x1fce], 0x24
mov byte [rsp + 0x1fcf], 8
mov byte [rsp + 0x1fd0], 0x90
mov byte [rsp + 0x1fd1], 0x90
mov byte [rsp + 0x1fd2], 0x90
mov byte [rsp + 0x1fd3], 0x48
mov byte [rsp + 0x1fd4], 0x89
mov byte [rsp + 0x1fd5], 0x5c
mov byte [rsp + 0x1fd6], 0x24
mov byte [rsp + 0x1fd7], 8
mov dword [rsp + 0x1fd8], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x1fdc], 0
jmp 0x180040ba8
mov eax, dword [rsp + 0x1fdc]
add eax, 1
mov dword [rsp + 0x1fdc], eax
mov ecx, dword [rsp + 0x1fdc]
mov eax, dword [rsp + 0x70]
sub rax, 0x12
cmp rcx, rax
jae 0x180040c53
mov eax, dword [rsp + 0x1fdc]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov r8d, 8
lea rdx, [rsp + 0x1fc8]
call fcn.18005db00
test eax, eax
je 0x180040c0c
mov eax, dword [rsp + 0x1fdc]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov r8d, 8
lea rdx, [rsp + 0x1fd0]
call fcn.18005db00
test eax, eax
jne 0x180040c4e
movsxd rax, dword [rsp + 0x1fd8]
cmp rax, 0x3e7
jae 0x180040c4e
mov ecx, dword [rsp + 0x1fdc]
mov rax, qword [rsp + 0x68]
lea rcx, [rax + rcx + 3]
movsxd rax, dword [rsp + 0x1fd8]
mov qword [rsp + rax*8 + 0x80], rcx
mov eax, dword [rsp + 0x1fd8]
add eax, 1
mov dword [rsp + 0x1fd8], eax
jmp 0x180040b97
call fcn.18000e540
mov ebx, eax
call fcn.18005058c
mov ecx, ebx
add ecx, eax
call fcn.180050574
call fcn.18005058c
mov ecx, dword [rsp + 0x1fd8]
sub ecx, 2
cdq
idiv ecx
movsxd rax, edx
mov rax, qword [rsp + rax*8 + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
jmp 0x180040c99
xor eax, eax
jmp 0x180040c99
mov rcx, qword [rsp + 0x1fe8]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x1ff0
pop rbx
ret