Function at 0x1400053a0
Capabilities:
Access pe header

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400053f4
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
jmp 0x14000569c
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x10b
je 0x140005417
cmp dword [rsp + 0x40], 0x20b
je 0x140005426
jmp 0x140005436
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x50], rax
jmp 0x140005446
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x140005446
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
jmp 0x14000569c
mov dword [rsp + 0x20], 0xa
mov dword [rsp + 0x24], 0
jmp 0x140005462
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jge 0x1400054e2
mov eax, dword [rsp + 0x24]
cdq
and eax, 1
xor eax, edx
sub eax, edx
test eax, eax
jne 0x1400054bc
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
test eax, eax
jne 0x1400054aa
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1400054ba
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1400054dd
cmp dword [rsp + 0x20], 0
jle 0x1400054dd
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cdq
mov ecx, 5
idiv ecx
mov eax, edx
jmp 0x1400054bc
jmp 0x140005458
cmp dword [rsp + 0x20], 0x14
jle 0x1400054ff
mov eax, dword [rsp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xa
jg 0x1400054e9
jmp 0x140005553
mov dword [rsp + 0x2c], 0
jmp 0x140005513
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x2c], eax
jge 0x140005553
mov eax, dword [rsp + 0x2c]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
test eax, eax
jne 0x140005541
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x140005551
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x140005509
lea r9, [rsp + 0x34]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140005581
cmp dword [rsp + 0x34], 0
jne 0x1400055b6
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x14000559e
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x44], eax
jmp 0x1400055a9
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
jmp 0x14000569c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x34], 0
je 0x140005691
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140005604
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
jmp 0x14000569c
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
sub rax, 8
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
call section.INIT
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000568c
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
jmp 0x14000569c
jmp 0x1400055d6
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret