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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rdi, rcx
mov rcx, qword [rcx + 0x128]
lea rbp, [rsp + 0x40]
test rcx, rcx
je 0x140085da0
mov dword [rsp + 0x40], 0
xor esi, esi
call fcn.14000c6c0
mov r12, qword [rdi + 0x128]
nop dword [rax + rax]
add esi, 1
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov r9d, esi
call fcn.14006c910
mov ebx, eax
cmp eax, 0xffffffff
je 0x140085c60
or eax, dword [rsp + 0x40]
jne 0x140085d20
movabs rax, 0xff00000000ff
and rax, qword [rdi + 0x10]
jne 0x140085cff
mov rax, qword [rdi + 0x128]
test rax, rax
je 0x140085cac
cmp word [rax + 0x3c], 0
jns 0x140086060
mov rcx, qword [rdi + 0x48]
xor eax, eax
cmp qword [rcx], 0
je 0x140085cfc
mov qword [rsp + 0x40], 0
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x140085d82
mov rcx, qword [rdi + 0xc8]
mov rax, qword [rsp + 0x40]
add rax, rcx
sub rax, 1
cqo
idiv rcx
cmp dword [rdi + 0xbc], eax
jae 0x140085cfc
mov dword [rdi + 0xbc], eax
mov dword [rdi + 0x20], eax
xor ebx, ebx
mov byte [rdi + 0x15], 1
mov eax, ebx
mov byte [rdi + 0x1c], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rdi + 0x70]
add dword [rdi + 0x84], 1
test rax, rax
je 0x140085d40
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140085d30
mov rcx, qword [rdi + 0x120]
xor edx, edx
call fcn.14000d820
cmp byte [rdi + 0x1b], 0
je 0x140085d66
mov rcx, qword [rdi + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
movabs rax, 0xff00000000ff
and rax, qword [rdi + 0x10]
je 0x140086018
test ebx, ebx
je 0x140085cff
mov rcx, rdi
call fcn.140010360
mov eax, ebx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp byte [rdi + 0x15], 0
je 0x140085df9
movabs rax, 0xff00000000ff
and rax, qword [rdi + 0x10]
je 0x140085cac
jmp 0x140085cff
cmp byte [rdi + 0x11], 0
jne 0x140085eb4
mov rcx, qword [rdi + 0x48]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
je 0x140085eb0
cmp eax, 5
jne 0x140085d82
mov rcx, qword [rdi + 0xf0]
call qword [rdi + 0xe8]
test eax, eax
je 0x140085d82
movzx eax, byte [rdi + 0x16]
cmp al, 5
je 0x140085dc0
test al, al
je 0x140085dc0
cmp byte [rdi + 0x16], 1
jbe 0x140085ec0
cmp byte [rdi + 0x12], 0
mov ebx, 0x308
jne 0x140085d82
mov edx, 4
mov rcx, rdi
call fcn.140003110
mov ebx, eax
test eax, eax
jne 0x140085d82
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x14008609f
cmp byte [rdi + 0xb], 0
je 0x1400861b5
lea rdx, [rdi + 0x68]
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x140085e7b
xor edx, edx
cmp byte [rdi + 0x10], 0
mov rcx, rdi
sete dl
call fcn.1400828c0
mov byte [rdi + 0x15], 0
mov ebx, eax
test ebx, ebx
je 0x140085f0a
movzx eax, bl
cmp bl, 0xd
je 0x140085e8c
cmp eax, 0xa
jne 0x140085d82
lea rax, [0x140003240]
mov dword [rdi + 0x30], ebx
mov byte [rdi + 0x15], 6
mov qword [rdi + 0x110], rax
jmp 0x140085d82
movzx eax, byte [rdi + 0x16]
cmp al, 5
je 0x140085e0f
mov byte [rdi + 0x16], 1
mov rax, qword [rdi + 0x50]
mov rsi, qword [rdi]
mov dword [rsp + 0x34], 1
mov rbp, qword [rax]
test rbp, rbp
je 0x140086025
mov rcx, qword [rdi + 0x48]
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
jne 0x140085d82
mov r10d, dword [rsp + 0x38]
test r10d, r10d
je 0x1400861d3
cmp byte [rdi + 0x10], 0
jne 0x140086070
cmp byte [rdi + 0x1c], 0
je 0x140085fc3
mov rcx, qword [rdi + 0x48]
lea rbp, [rsp + 0x40]
mov r9d, 0x18
mov r8d, 0x10
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, eax
test eax, eax
je 0x140085f56
cmp eax, 0x20a
jne 0x140085d82
pxor xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
xor rax, qword [rsp + 0x40]
xor rdx, qword [rsp + 0x48]
or rax, rdx
je 0x140085fb9
mov rax, qword [rdi + 0x70]
add dword [rdi + 0x84], 1
test rax, rax
je 0x140085f93
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140085f83
mov rcx, qword [rdi + 0x120]
xor edx, edx
call fcn.14000d820
cmp byte [rdi + 0x1b], 0
je 0x140085fb9
mov rcx, qword [rdi + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rdi + 0x10], 0
jne 0x140086070
mov rax, qword [rdi]
mov rdx, qword [rdi + 0x130]
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, rax
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
jne 0x14008608a
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x140086160
cmp byte [rdi + 9], 5
mov rcx, qword [rdi + 0x128]
je 0x14008624a
test rcx, rcx
je 0x140085da6
lea rbp, [rsp + 0x40]
jmp 0x140085c42
test ebx, ebx
jne 0x140085d82
jmp 0x140085c95
mov rdx, qword [rdi + 0xe0]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, rsi
call qword [rsi + 0x38]
mov ebx, eax
test eax, eax
jne 0x140085d82
mov r11d, dword [rsp + 0x34]
test r11d, r11d
je 0x140085f0a
jmp 0x140085edb
mov eax, dword [rax + 0x5c]
test eax, eax
je 0x140085cac
jmp 0x140085cee
mov rcx, qword [rdi + 0x128]
lea rbp, [rsp + 0x40]
test rcx, rcx
jne 0x140085c42
jmp 0x140085da6
mov rcx, qword [rdi + 0x128]
test rcx, rcx
jne 0x14008600b
jmp 0x140085d82
cmp byte [rdi + 9], 2
je 0x140086122
mov rsi, qword [rdi]
mov rdx, qword [rdi + 0xe0]
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, rsi
call qword [rsi + 0x38]
mov ebx, eax
test eax, eax
jne 0x140086261
mov ebx, dword [rsp + 0x3c]
mov rcx, qword [rdi + 0x50]
test ebx, ebx
je 0x140086116
xor r8d, r8d
lea rbp, [rsp + 0x40]
mov rdx, qword [rdi + 0xe0]
mov r9d, 0x802
mov dword [rsp + 0x40], r8d
mov r8, rcx
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [rsi + 0x28]
mov ebx, eax
test eax, eax
jne 0x140086261
mov ebx, dword [rsp + 0x40]
and ebx, 1
jne 0x140086307
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
test rax, rax
jne 0x140085e45
cmp byte [rdi + 8], 0
jne 0x140085f0a
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140086383
cmp byte [rdi + 0x11], 0
jne 0x14008614a
mov edx, 1
call qword [rax + 0x40]
cmp byte [rdi + 0x16], 5
je 0x140086154
mov byte [rdi + 0x16], 1
movzx eax, byte [rdi + 0x10]
mov byte [rdi + 0x17], al
jmp 0x140085e73
lea rbp, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbp
call fcn.140003160
mov ebx, eax
test eax, eax
jne 0x1400862a8
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140086297
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400861a0
mov rdx, qword [rdi + 0x130]
xor r8d, r8d
call rax
mov ebx, eax
mov rcx, qword [rdi + 0x128]
test rcx, rcx
jne 0x140085c42
jmp 0x140085d66
mov edx, 2
call qword [rax + 0x28]
mov ebx, eax
test eax, eax
jne 0x140085e7b
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
jmp 0x140085e4f
lea rdx, [rsp + 0x3c]
mov rcx, rdi
call fcn.140003160
mov ebx, eax
test eax, eax
jne 0x140085d82
cmp dword [rsp + 0x3c], 0
jne 0x1400862bd
test rbp, rbp
je 0x14008638f
mov rcx, qword [rdi + 0x50]
mov byte [rsp + 0x40], 0
lea rbp, [rsp + 0x40]
xor r9d, r9d
mov r8d, 1
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, eax
cmp eax, 0x20a
je 0x140086452
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
test ebx, ebx
jne 0x140085d82
test eax, eax
je 0x140085f0a
jmp 0x140085e0f
mov byte [rdi + 9], 0
lea rbp, [rsp + 0x40]
test rcx, rcx
jne 0x140085c42
jmp 0x140085da6
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
test rax, rax
jne 0x140085e45
cmp byte [rdi + 8], 0
jne 0x140085e7b
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
test rax, rax
jne 0x14008613c
movzx eax, byte [rdi + 0x10]
mov byte [rdi + 0x17], al
jmp 0x140085e7b
xor edx, edx
mov rcx, rdi
call fcn.140017270
mov ebx, eax
jmp 0x1400861a0
mov rcx, qword [rdi + 0x128]
test rcx, rcx
jne 0x140085c42
jmp 0x140085d82
test rbp, rbp
jne 0x1400861fe
lea rbp, [rsp + 0x40]
mov rdx, qword [rdi + 0xe0]
mov r9d, 0x801
mov rcx, rsi
mov qword [rsp + 0x20], rbp
mov r8, qword [rdi + 0x50]
mov dword [rsp + 0x40], 0x801
call qword [rsi + 0x28]
mov ebx, eax
test eax, eax
je 0x14008640e
cmp eax, 0xe
jne 0x140085d82
jmp 0x140085e0f
lea rax, [0x1401b108c]
mov r9d, 0xec40
lea r8, str.cannot_open_file
mov ecx, 0xe
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14002e120
mov rbx, qword [rdi + 0x50]
mov rax, qword [rbx]
test rax, rax
je 0x140086358
mov rcx, rbx
call qword [rax + 8]
xor ecx, ecx
mov qword [rbx], rcx
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
test rax, rax
jne 0x140085e45
cmp byte [rdi + 8], 0
jne 0x140086461
mov rcx, qword [rdi + 0x48]
mov ebx, 0xe
mov rax, qword [rcx]
test rax, rax
jne 0x14008613c
movzx eax, byte [rdi + 0x10]
mov byte [rdi + 0x17], al
jmp 0x140085d82
movzx eax, byte [rdi + 0x10]
mov byte [rdi + 0x17], al
jmp 0x140085f0a
mov rax, qword [0x1401f5390]
test rax, rax
je 0x14008639d
call rax
mov edx, 2
mov rcx, rdi
call fcn.140003110
test eax, eax
jne 0x1400863f7
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x1400863c6
mov rdx, qword [rdi + 0xe0]
xor r8d, r8d
mov rcx, rsi
call rax
cmp byte [rdi + 8], 0
jne 0x1400863f7
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1400863f0
cmp byte [rdi + 0x11], 0
jne 0x1400863e6
mov edx, 1
call qword [rax + 0x40]
cmp byte [rdi + 0x16], 5
je 0x1400863f0
mov byte [rdi + 0x16], 1
movzx eax, byte [rdi + 0x10]
mov byte [rdi + 0x17], al
mov rax, qword [0x1401f5398]
test rax, rax
je 0x140085f0a
call rax
jmp 0x140085f0a
mov rcx, qword [rdi + 0x50]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov rdx, rbp
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [rdi + 0x50]
cmp eax, 0x20a
cmovne ebx, eax
mov rax, qword [rsi]
test rax, rax
je 0x14008622b
mov rcx, rsi
call qword [rax + 8]
xor r9d, r9d
mov qword [rsi], r9
jmp 0x14008622b
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
jmp 0x14008623d
mov ebx, 0xe
jmp 0x140085d82