Function at 0x1401c17a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x3c]
mov rsi, rcx
mov rcx, qword [rcx + 0x128]
lea rdi, [rsp + 0x40]
test rcx, rcx
je 0x1401c1880
mov dword [rsp + 0x3c], 0
call fcn.1401583c0
mov r12, qword [rsi + 0x128]
mov dword [rsp + 0x40], 0
nop dword [rax + rax]
xor r8d, r8d
mov r9, rdi
mov rdx, rbp
mov rcx, r12
call fcn.1401bfaf0
cmp eax, 0xffffffff
mov ebx, eax
je 0x1401c17e8
or eax, dword [rsp + 0x3c]
je 0x1401c1886
mov rax, qword [rsi + 0x70]
add dword [rsi + 0x84], 1
test rax, rax
je 0x1401c1830
nop word [rax + rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401c1820
mov rcx, qword [rsi + 0x120]
xor edx, edx
call fcn.140155180
cmp byte [rsi + 0x1b], 0
je 0x1401c1856
mov rcx, qword [rsi + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
movabs rax, 0xff00000000ff
and rax, qword [rsi + 0x10]
je 0x1401c18d0
test ebx, ebx
je 0x1401c18b0
mov rcx, rsi
call fcn.140161530
mov eax, ebx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp byte [rsi + 0x15], 0
je 0x1401c18e0
movabs rax, 0xff00000000ff
and rax, qword [rsi + 0x10]
jne 0x1401c18b0
lea rdx, [rsi + 0x20]
mov rcx, rsi
call fcn.140149b60
mov ebx, eax
jmp 0x1401c1866
xor ebx, ebx
mov byte [rsi + 0x15], 1
mov eax, ebx
mov byte [rsi + 0x1c], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test ebx, ebx
jne 0x1401c186a
jmp 0x1401c1896
mov edx, 1
mov rcx, rsi
call fcn.140157540
test eax, eax
mov ebx, eax
jne 0x1401c186a
cmp byte [rsi + 0x16], 1
jbe 0x1401c1989
cmp byte [rsi + 0x12], 0
mov ebx, 0x308
jne 0x1401c186a
mov edx, 4
mov rcx, rsi
call fcn.140149b10
test eax, eax
mov ebx, eax
jne 0x1401c186a
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x1401c1b40
mov rcx, rsi
call fcn.1401571c0
test eax, eax
mov ebx, eax
jne 0x1401c195e
xor edx, edx
cmp byte [rsi + 0x10], 0
mov rcx, rsi
sete dl
call fcn.1401a8260
mov byte [rsi + 0x15], 0
mov ebx, eax
test ebx, ebx
je 0x1401c19d3
cmp bl, 0xd
movzx eax, bl
je 0x1401c196f
cmp eax, 0xa
jne 0x1401c186a
lea rax, [0x140149d40]
mov dword [rsi + 0x30], ebx
mov byte [rsi + 0x15], 6
mov qword [rsi + 0x110], rax
jmp 0x1401c186a
mov rax, qword [rsi + 0x50]
mov dword [rsp + 0x34], 1
mov r12, qword [rsi]
mov rdi, qword [rax]
test rdi, rdi
je 0x1401c1b07
mov rcx, qword [rsi + 0x48]
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
mov ebx, eax
jne 0x1401c186a
mov r11d, dword [rsp + 0x38]
test r11d, r11d
je 0x1401c1c2c
cmp byte [rsi + 0x10], 0
jne 0x1401c1ad7
cmp byte [rsi + 0x1c], 0
je 0x1401c1a86
mov rcx, qword [rsi + 0x48]
lea rdi, [rsp + 0x40]
mov r9d, 0x18
mov r8d, 0x10
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x10]
test eax, eax
mov ebx, eax
je 0x1401c1a28
cmp eax, 0x20a
jne 0x1401c186a
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rdi, qword [rsp + 0x40]
cmp qword [rsi + 0x88], rdi
je 0x1401c1bc0
mov rax, qword [rsi + 0x70]
add dword [rsi + 0x84], 1
test rax, rax
je 0x1401c1a5a
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401c1a4a
mov rcx, qword [rsi + 0x120]
xor edx, edx
call fcn.140155180
cmp byte [rsi + 0x1b], 0
je 0x1401c1a80
mov rcx, qword [rsi + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rsi + 0x10], 0
jne 0x1401c1ad7
mov rax, qword [rsi]
lea rbp, [rsp + 0x3c]
xor r8d, r8d
mov rdx, qword [rsi + 0x130]
mov r9, rbp
mov rcx, rax
call qword [rax + 0x38]
test eax, eax
mov ebx, eax
jne 0x1401c1af6
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401c1bd7
cmp byte [rsi + 9], 5
mov rcx, qword [rsi + 0x128]
je 0x1401c1ca6
test rcx, rcx
je 0x1401c1886
lea rdi, [rsp + 0x40]
jmp 0x1401c17c7
mov rcx, qword [rsi + 0x128]
test rcx, rcx
je 0x1401c1886
lea rbp, [rsp + 0x3c]
lea rdi, [rsp + 0x40]
jmp 0x1401c17c7
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1401c1acd
jmp 0x1401c186a
xor r8d, r8d
mov rdx, qword [rsi + 0xe0]
mov rcx, r12
lea r9, [rsp + 0x34]
call qword [r12 + 0x38]
test eax, eax
mov ebx, eax
jne 0x1401c186a
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x1401c19d3
jmp 0x1401c19a4
cmp byte [rsi + 9], 2
je 0x1401c1b82
mov rbp, qword [rsi]
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, qword [rsi + 0xe0]
mov rcx, rbp
call qword [rbp + 0x38]
test eax, eax
mov ebx, eax
jne 0x1401c1cbd
mov ebx, dword [rsp + 0x3c]
mov r8, qword [rsi + 0x50]
test ebx, ebx
jne 0x1401c1cf1
cmp qword [r8], 0
jne 0x1401c1935
cmp byte [rsi + 8], 0
jne 0x1401c19d3
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401c1dbd
cmp byte [rsi + 0x11], 0
jne 0x1401c1baa
mov edx, 1
call qword [rax + 0x40]
cmp byte [rsi + 0x16], 5
je 0x1401c1bb4
mov byte [rsi + 0x16], 1
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401c195a
mov rdi, qword [rsp + 0x48]
cmp qword [rsi + 0x90], rdi
jne 0x1401c1a3a
jmp 0x1401c1a80
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140149b60
test eax, eax
mov ebx, eax
jne 0x1401c1d3c
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401c1d51
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1401c1c17
mov rdx, qword [rsi + 0x130]
xor r8d, r8d
call rax
mov ebx, eax
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1401c17c7
jmp 0x1401c1856
lea rbp, [rsp + 0x3c]
mov rcx, rsi
mov rdx, rbp
call fcn.140149b60
test eax, eax
mov ebx, eax
jne 0x1401c186a
cmp dword [rsp + 0x3c], 0
jne 0x1401c1d62
test rdi, rdi
je 0x1401c1e48
mov rcx, qword [rsi + 0x50]
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x40]
xor r9d, r9d
mov r8d, 1
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp eax, 0x20a
mov ebx, eax
je 0x1401c1dae
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
test ebx, ebx
jne 0x1401c186a
test eax, eax
je 0x1401c19d3
jmp 0x1401c1901
mov byte [rsi + 9], 0
lea rdi, [rsp + 0x40]
test rcx, rcx
jne 0x1401c17c7
jmp 0x1401c1886
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
jne 0x1401c1935
cmp byte [rsi + 8], 0
jne 0x1401c195e
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
jne 0x1401c1b9c
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401c195e
xor r9d, r9d
mov rdx, qword [rsi + 0xe0]
mov rcx, rbp
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x40], r9d
mov r9d, 0x802
mov qword [rsp + 0x20], rdi
call qword [rbp + 0x28]
test eax, eax
mov ebx, eax
jne 0x1401c1cbd
mov ebx, dword [rsp + 0x40]
and ebx, 1
jne 0x1401c1dc9
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
jne 0x1401c1935
jmp 0x1401c1b82
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1401c17c7
jmp 0x1401c186a
xor edx, edx
mov rcx, rsi
call fcn.140160e20
mov ebx, eax
jmp 0x1401c1c17
test rdi, rdi
jne 0x1401c1c5a
lea rdi, [rsp + 0x40]
mov rdx, qword [rsi + 0xe0]
mov r9d, 0x801
mov rcx, r12
mov qword [rsp + 0x20], rdi
mov r8, qword [rsi + 0x50]
mov dword [rsp + 0x40], 0x801
call qword [r12 + 0x28]
test eax, eax
mov ebx, eax
je 0x1401c1e9d
cmp eax, 0xe
jne 0x1401c186a
jmp 0x1401c1901
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
jmp 0x1401c1c99
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401c19d3
lea rax, [0x1403a344c]
mov r9d, 0xf239
mov ecx, 0xe
mov qword [rsp + 0x20], rax
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14018e940
mov rbx, qword [rsi + 0x50]
mov rax, qword [rbx]
test rax, rax
je 0x1401c1e18
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rsi + 0x50]
xor ecx, ecx
mov qword [rbx], rcx
cmp qword [rax], 0
jne 0x1401c1935
cmp byte [rsi + 8], 0
mov ebx, 0xe
jne 0x1401c186a
mov rcx, qword [rsi + 0x48]
mov ebx, 0xe
mov rax, qword [rcx]
test rax, rax
jne 0x1401c1b9c
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401c186a
mov rax, qword [0x14041e730]
test rax, rax
je 0x1401c1e56
call rax
mov edx, 2
mov rcx, rsi
call fcn.140149b10
test eax, eax
jne 0x1401c1e86
mov rax, qword [r12 + 0x30]
test rax, rax
je 0x1401c1e80
mov rdx, qword [rsi + 0xe0]
xor r8d, r8d
mov rcx, r12
call rax
cmp byte [rsi + 8], 0
je 0x1401c1ee1
mov rax, qword [0x14041e738]
test rax, rax
je 0x1401c19d3
call rax
jmp 0x1401c19d3
mov rcx, qword [rsi + 0x50]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov rdx, rdi
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsi + 0x50]
cmp eax, 0x20a
cmovne ebx, eax
mov rax, qword [rdi]
test rax, rax
je 0x1401c1c87
mov rcx, rdi
call qword [rax + 8]
xor r10d, r10d
mov qword [rdi], r10
jmp 0x1401c1c87
mov edx, 1
mov rcx, rsi
call fcn.140149ad0
jmp 0x1401c1e86