Function at 0x1800479d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1800dbea8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r12, qword [rsp + 0x1e0]
mov rbx, r9
imul r13d, edx, 0x4b6
mov r15d, edx
mov qword [rsp + 0x40], r8
mov r14, rcx
mov ebp, edx
cmp edx, r13d
ja 0x180047a82
mov rsi, qword [rsp + 0x50]
xor edi, edi
cmp ebp, 0x80ac
ja 0x180047ba2
je 0x180047b49
mov eax, ebp
sub eax, 0x69
je 0x180047b2f
sub eax, 0x22
je 0x180047afc
sub eax, 0x69
je 0x180047ab2
cmp eax, 0x1e
jne 0x180047d3c
cmp dword [r12], 0
je 0x180047d53
cmp dword [rbx + 0x18], 0
jne 0x180047a73
cmp dword [rbx + 0x1c], 0
je 0x180047d3c
mov dword [rbx + 0x38], 0xa
mov dword [rsp + 0x30], 0xffffffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1800c0ae0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp byte [rbx], 0x2d
jne 0x180047acd
cmp byte [rbx + 1], 0
jne 0x180047acd
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
jmp 0x180047d37
lea rdx, [0x1800ce2e4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
jne 0x180047d37
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [r8]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], eax
lea r8, [rsp + 0x58]
mov eax, dword [r14]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
mov ecx, 0x11f
mov eax, dword [rbx]
mov qword [rsp + 0x58], rax
call fcn.18009d410
jmp 0x180047d37
mov eax, 0x7b
cmp eax, 0x7b
je 0x180047d5c
add eax, 0x5601
cmp eax, 0x5601
jbe 0x180047b34
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
jmp 0x180047d37
cmp ebp, 0x907e
je 0x180047d18
cmp ebp, 0x10064
je 0x180047bd8
cmp ebp, 0x11fea
je 0x180047bcf
cmp ebp, 0x1af56
je 0x180047a82
jmp 0x180047d3c
mov dword [rsp + 0x30], edi
jmp 0x180047d3c
mov ecx, 0x10
nop dword [rax]
mov eax, ecx
sub eax, 0x10
je 0x180047c0e
sub eax, 1
je 0x180047c04
cmp eax, 1
jne 0x180047d0b
mov eax, dword [0x1800e1ba8]
mov dword [rsp + 0x30], eax
jmp 0x180047a82
mov ebp, 0x10064
jmp 0x180047d0b
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x180047d06
nop
mov r8, rsi
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x180047d06
movzx eax, byte [rsp + 0x70]
cmp al, 0x23
je 0x180047cf5
cmp al, 0x2d
jne 0x180047c57
mov edi, 1
mov byte [rsp + 0x70], 0x20
mov edx, 0xa
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x180047c6e
mov byte [rax], 0
mov edx, 0xd
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x180047c85
mov byte [rax], 0
test edi, edi
jne 0x180047ca1
lea r8, [rsp + 0x70]
lea rdx, str.NO_SELECTOR
lea rcx, str._s:__s_n
call fcn.1800c03a0
mov eax, dword [r14]
lea r8, [rsp + 0x70]
xor edi, edi
mov dword [rsp + 0x60], eax
mov r9d, 0xc2
mov qword [rsp + 0x20], rdi
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800aea80
test eax, eax
je 0x180047cf5
mov dword [rsp + 0x38], eax
lea r8, [rsp + 0x50]
mov eax, dword [r14]
lea rdx, [rsp + 0x38]
mov r9d, 0xa1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x70]
call fcn.180059fe0
inc dword [0x1800e1ba8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x180047c20
mov ecx, 0x10
inc ecx
cmp ecx, 0x13
jb 0x180047be0
jmp 0x180047d37
mov edx, dword [r14]
xor r8d, r8d
mov rax, qword [rbx + 0x130]
mov rcx, rbx
add edx, dword [r12]
call qword [rax + 0x18]
test eax, eax
jne 0x180047a7a
mov r8, qword [rsp + 0x40]
imul eax, r15d, 0x86
add ebp, eax
cmp ebp, r13d
jbe 0x180047a24
jmp 0x180047a82
mov dword [rsp + 0x30], edi
jmp 0x180047a82
mov rax, rbx
and eax, 0xf
sub rbx, rax
lea rax, [rbx + 0x10]
jmp 0x180047a87