Function at 0x140004afc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x380
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rdx
mov rsi, rcx
xor r13d, r13d
mov eax, dword [0x1400921ec]
mov dword gs:[0x68], eax
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0x40]
lea r8, [rbp - 0x70]
call fcn.14005fa20
test eax, eax
js 0x140004ed7
mov eax, 0x5a4d
cmp word [rbp - 0x70], ax
je 0x140004b72
mov eax, 0xc000012f
jmp 0x140004ed7
movsxd rdx, dword [rbp - 0x34]
add rdx, r12
mov eax, dword [0x1400921ec]
mov dword gs:[0x68], eax
mov qword [rsp + 0x20], r13
mov r9d, 0x108
lea r8, [rbp - 0x30]
mov rcx, rsi
call fcn.14005fa20
test eax, eax
js 0x140004ed7
cmp dword [rbp - 0x30], 0x4550
jne 0x140004ed2
mov eax, 0x10b
mov ecx, 0x20b
cmp word [rbp - 0x18], ax
jne 0x140004bcd
mov r14d, dword [rbp + 0x48]
mov r15d, dword [rbp + 0x4c]
jmp 0x140004bdf
cmp word [rbp - 0x18], cx
jne 0x140004ed2
mov r14d, dword [rbp + 0x58]
mov r15d, dword [rbp + 0x5c]
test r14d, r14d
je 0x140004ecb
test r15d, r15d
je 0x140004ecb
mov edx, r15d
lea rcx, [rsp + 0x38]
call fcn.14000506c
nop
mov r8, qword [rsp + 0x38]
mov edi, r14d
lea rcx, [rdi + r12]
mov qword [rsp + 0x68], rcx
mov eax, dword [0x1400921ec]
mov dword gs:[0x68], eax
mov qword [rsp + 0x20], r13
mov r9d, r15d
mov rdx, rcx
mov rcx, rsi
call fcn.14005fa20
mov ebx, eax
test eax, eax
js 0x140004e99
mov r9, qword [rsp + 0x38]
mov ecx, dword [r9 + 0x24]
sub rcx, rdi
add rcx, r9
mov qword [rsp + 0x58], rcx
mov r10d, dword [r9 + 0x20]
sub r10, rdi
add r10, r9
mov qword [rsp + 0x50], r10
mov eax, dword [r9 + 0x1c]
sub rax, rdi
add rax, r9
mov qword [rsp + 0x60], rax
mov r8d, r13d
mov r13, qword [rbp + 0x2e0]
cmp dword [r9 + 0x14], r8d
jbe 0x140004e88
xor edx, edx
mov eax, dword [rbp + 0x2d8]
test eax, eax
je 0x140004c93
movzx r11d, r8w
jmp 0x140004cc2
cmp qword [rbp + 0x2d0], rdx
je 0x140004e83
cmp r8d, dword [r9 + 0x18]
jae 0x140004e83
mov eax, r8d
mov edx, dword [r10 + rax*4]
sub rdx, rdi
add rdx, r9
movzx r11d, word [rcx + rax*2]
mov eax, dword [rbp + 0x2d8]
test eax, eax
je 0x140004cd5
movzx ecx, r11w
add ecx, dword [r9 + 0x10]
movzx eax, ax
cmp eax, ecx
jne 0x140004d03
mov rax, qword [rbp + 0x2d0]
test rax, rax
je 0x140004d1a
mov r10, rax
sub r10, rdx
movzx eax, byte [rdx]
movzx ecx, byte [rdx + r10]
sub eax, ecx
jne 0x140004cfa
inc rdx
test ecx, ecx
jne 0x140004ce7
test eax, eax
je 0x140004d1a
mov r10, qword [rsp + 0x50]
inc r8d
cmp r8d, dword [r9 + 0x14]
mov rcx, qword [rsp + 0x58]
jb 0x140004c81
jmp 0x140004e88
movzx eax, r11w
mov rcx, qword [rsp + 0x60]
mov edi, dword [rcx + rax*4]
add rdi, r12
mov qword [r13], rdi
cmp rdi, qword [rsp + 0x68]
jb 0x140004e88
lea ecx, [r15 + r14]
add rcx, r12
cmp rdi, rcx
jae 0x140004e88
and qword [rsp + 0x30], 0
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0xe0]
call fcn.140060530
mov eax, dword [0x1400921ec]
mov dword gs:[0x68], eax
and qword [rsp + 0x20], 0
mov r9d, ebx
lea r8, [rbp + 0xe0]
mov rdx, rdi
mov rcx, rsi
call fcn.14005fa20
mov ebx, eax
test eax, eax
js 0x140004e99
mov edx, 0x2e
lea rcx, [rbp + 0xe0]
call qword [sym.imp.msvcrt.dll_strchr]
mov rbx, rax
test rax, rax
jne 0x140004dbb
mov ebx, 0xc0000141
jmp 0x140004e99
lea r8, [rax + 1]
mov edx, 0x82
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.msvcrt.dll_strcpy_s]
mov dword [rbx + 1], 0x6c6c64
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
test al, al
jne 0x140004df8
mov ebx, 0xc0000001
jmp 0x140004e99
mov edx, 0x23
lea rcx, [rbp + 0xe0]
call qword [sym.imp.msvcrt.dll_strchr]
lea rcx, [rbp + 0xe0]
cmp rax, rcx
sete dil
mov eax, 0x20b
cmp word [rbp - 0x18], ax
sete r8b
lea r9, [rsp + 0x30]
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call fcn.1400049ec
mov ebx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x140004e99
test dil, dil
je 0x140004e63
lea rcx, [rbp + 0xe1]
call qword [sym.imp.msvcrt.dll_atoi]
movzx r9d, ax
xor r8d, r8d
jmp 0x140004e6d
xor r9d, r9d
lea r8, [rbp + 0x1f0]
mov qword [rsp + 0x20], r13
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140004afc
mov ebx, eax
jmp 0x140004e99
mov ebx, 0xc000007a
test ebx, ebx
js 0x140004e99
mov eax, 0xc0000225
cmp qword [r13], 0
cmove ebx, eax
cmp qword [rsp + 0x38], 0
je 0x140004ec7
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
mov eax, ebx
jmp 0x140004ed7
mov eax, 0xc0000103
jmp 0x140004ed7
mov eax, 0xc000007b
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret