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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rcx + 0x128]
test r14, r14
jne 0x1401be535
xor edi, edi
cmp byte [rsi + 0x15], 0
je 0x1401be607
mov r14, qword [rsi + 0x128]
mov ebx, edi
test r14, r14
jne 0x1401be535
cmp byte [rsi + 0x10], 0
jne 0x1401be4e4
cmp byte [rsi + 0x15], 0
jne 0x1401be4e4
test ebx, ebx
jne 0x1401be4e4
mov rax, qword [rsi + 0x128]
test rax, rax
jne 0x1401be51e
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401be8cb
lea rdx, [rsp + 0x30]
mov qword [rdx], 0
mov rax, qword [rax + 0x30]
call qword [str._a_]
test eax, eax
jne 0x1401be85f
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsi + 0xc8]
add rax, rcx
dec rax
cqo
idiv rcx
cmp eax, dword [rsi + 0xbc]
ja 0x1401be8c0
mov dword [rsi + 0x20], eax
jmp 0x1401be4ec
test ebx, ebx
jne 0x1401be861
mov al, 1
mov byte [rsi + 0x15], al
mov byte [rsi + 0x1c], al
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401be50d
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp word [rax + 0x3c], 0
js 0x1401be48e
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x1401be4d3
jmp 0x1401be48e
mov dword [rsp + 0x30], 0
cmp byte [r14 + 0x40], 0
jne 0x1401be9a1
movzx edi, word [r14 + 0x3c]
test di, di
js 0x1401be564
cmp byte [r14 + 0x3f], 0
je 0x1401becf5
mov word [r14 + 0x3c], 0xffff
mov rcx, qword [rsi + 0x128]
lea rdi, [rsp + 0x30]
mov rdx, rdi
call fcn.1401bedc0
mov ebx, eax
mov eax, dword [rdi]
or eax, ebx
je 0x1401be46e
inc dword [rsi + 0x84]
mov rax, qword [rsi + 0x70]
test rax, rax
jne 0x1401bed2c
mov r14, qword [rsi + 0x120]
cmp qword [r14 + 0x48], 0
je 0x1401be5d4
mov rcx, qword [r14]
test rcx, rcx
jne 0x1401bed3c
mov edi, 1
cmp qword [r14 + 0x18], 0
jne 0x1401bed77
mov rax, qword [0x14043f5a8]
mov rcx, qword [r14 + 0x48]
mov edx, edi
call qword [str._a_]
cmp byte [rsi + 0x1b], 0
je 0x1401be46e
jmp 0x1401bed59
cmp al, 1
jbe 0x1401be647
jmp 0x1401beb1f
cmp word [rax + 0x3c], 0
js 0x1401be6ce
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x1401be713
jmp 0x1401be6ce
movzx eax, byte [rsi + 0x16]
cmp eax, 5
je 0x1401be614
test eax, eax
jne 0x1401be5e3
cmp byte [rsi + 0x11], 0
jne 0x1401be63b
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov edx, 1
call qword [str._a_]
test eax, eax
jne 0x1401be8ed
mov al, byte [rsi + 0x16]
cmp al, 5
je 0x1401beb1f
mov byte [rsi + 0x16], 1
mov r14, qword [rsi]
mov dword [rsp + 0x2c], 1
mov rax, qword [rsi + 0x50]
mov r12, qword [rax]
test r12, r12
jne 0x1401be68f
mov rdx, qword [rsi + 0xe0]
mov rax, qword [r14 + 0x38]
lea r9, [rsp + 0x2c]
mov rcx, r14
xor r8d, r8d
call qword [str._a_]
mov ebx, eax
test eax, eax
jne 0x1401be839
cmp dword [rsp + 0x2c], 0
je 0x1401be839
lea r15, [rsp + 0x28]
mov dword [r15], 0
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
mov rdx, r15
call qword [str._a_]
mov ebx, eax
xor ebp, ebp
mov eax, dword [r15]
or eax, ebx
jne 0x1401be779
mov rax, qword [rsi + 0x128]
test rax, rax
jne 0x1401be5ec
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401be8e6
lea rdx, [rsp + 0x30]
mov qword [rdx], 0
mov rax, qword [rax + 0x30]
call qword [str._a_]
test eax, eax
jne 0x1401be85f
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsi + 0xc8]
add rax, rcx
dec rax
cqo
idiv rcx
cmp eax, dword [rsi + 0xbc]
ja 0x1401be8db
test r12, r12
jne 0x1401be72c
test eax, eax
je 0x1401bea55
test r12, r12
je 0x1401be9e6
lea rdx, [rsp + 0x30]
mov byte [rdx], 0
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
xor r14d, r14d
mov r8d, 1
xor r9d, r9d
call qword [str._a_]
mov ebx, eax
cmp eax, 0x20a
cmove ebx, r14d
test r12, r12
je 0x1401be91e
xor ebp, ebp
cmp byte [rsp + 0x30], 0
setne bpl
test ebx, ebx
jne 0x1401be861
test ebp, ebp
jne 0x1401beb1f
cmp byte [rsi + 0x10], 0
jne 0x1401be45c
cmp byte [rsi + 0x1c], 0
je 0x1401be7f2
movdqa xmm0, xmmword [0x1403d4b30]
lea rdx, [rsp + 0x30]
movdqa xmmword [rdx], xmm0
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov r9d, Ordinal_27
mov r8d, reloc.WS2_32.dll_recv
call qword [str._a_]
test eax, eax
jne 0x1401be843
movdqu xmm0, xmmword [rsi + 0x88]
pcmpeqb xmm0, xmmword [rsp + 0x30]
pmovmskb eax, xmm0
cmp eax, 0xffff
jne 0x1401be86e
cmp byte [rsi + 0x10], 0
jne 0x1401be45c
lea r9, [rsp + 0x30]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x130]
mov rax, qword [rcx + 0x38]
xor r8d, r8d
call qword [str._a_]
test eax, eax
jne 0x1401be975
cmp dword [rsp + 0x30], 0
jne 0x1401be947
xor edi, edi
cmp byte [rsi + 9], 5
jne 0x1401be45c
jmp 0x1401be8d2
test ebx, ebx
je 0x1401be789
jmp 0x1401be861
mov ebx, eax
cmp eax, 0x20a
jne 0x1401be4e4
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x1401be7cb
mov ebx, eax
mov rcx, rsi
call fcn.1401bb280
jmp 0x1401be4f6
inc dword [rsi + 0x84]
mov rax, qword [rsi + 0x70]
jmp 0x1401be885
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401be87a
mov rcx, qword [rsi + 0x120]
xor edx, edx
call fcn.1401bb770
cmp byte [rsi + 0x1b], 0
je 0x1401be7e8
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
xor edx, edx
xor r8d, r8d
call qword [str._a_]
jmp 0x1401be7e8
mov dword [rsi + 0xbc], eax
jmp 0x1401be4df
xor eax, eax
jmp 0x1401be4df
mov byte [rsi + 9], 0
jmp 0x1401be45c
mov dword [rsi + 0xbc], eax
jmp 0x1401be72c
xor eax, eax
jmp 0x1401be71f
mov ebx, eax
cmp eax, 5
jne 0x1401be4e4
mov rax, qword [rsi + 0xe8]
mov rcx, qword [rsi + 0xf0]
call qword [str._a_]
test eax, eax
jne 0x1401be607
mov ebx, 5
jmp 0x1401be861
mov r14, qword [rsi + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x1401be76e
mov rax, qword [rax + 8]
mov rcx, r14
call qword [str._a_]
mov qword [r14], 0
jmp 0x1401be76e
lea rdx, [rsp + 0x2c]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rsi
call fcn.14035c0d0
mov edi, eax
test eax, eax
jne 0x1401be45c
cmp dword [rsp + 0x2c], 0
je 0x1401be97c
mov rcx, rsi
xor edx, edx
call fcn.14035c040
mov edi, eax
jmp 0x1401be45c
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1401be99a
mov rdx, qword [rsi + 0x130]
xor r8d, r8d
call qword [str._a_]
jmp 0x1401be975
xor edi, edi
jmp 0x1401be45c
cmp byte [r14 + 0x3f], 0
jne 0x1401be9cf
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
xor edx, edx
mov r8d, 1
mov r9d, 9
call qword [str._a_]
and byte [r14 + 0x8d], 0xfe
xor eax, eax
mov byte [r14 + 0x40], al
mov dword [r14 + 0x7c], 0
mov byte [r14 + 0x43], al
jmp 0x1401be548
lea rcx, [rsp + 0x30]
mov dword [rcx], 0x801
mov r8, qword [rsi + 0x50]
mov rdx, qword [rsi + 0xe0]
mov rax, qword [r14 + 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, r14
mov r9d, 0x801
call qword [str._a_]
cmp eax, 0xe
je 0x1401bea28
mov ebx, eax
test eax, eax
je 0x1401be735
jmp 0x1401be779
mov ebp, 1
jmp 0x1401be781
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov edx, 2
call qword [str._a_]
test eax, eax
jne 0x1401beadb
mov al, byte [rsi + 0x16]
jmp 0x1401bea80
mov rax, qword [0x14044c8c8]
test rax, rax
je 0x1401bea67
call qword [str._a_]
movzx eax, byte [rsi + 0x16]
cmp eax, 5
ja 0x1401bea88
mov ecx, 0x23
bt ecx, eax
jae 0x1401bea88
cmp byte [rsi + 0x11], 0
je 0x1401bea32
cmp al, 5
je 0x1401bea88
mov byte [rsi + 0x16], 2
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x1401beaa4
mov rdx, qword [rsi + 0xe0]
mov rcx, r14
xor r8d, r8d
call qword [str._a_]
cmp byte [rsi + 8], 0
jne 0x1401beadb
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401bead5
cmp byte [rsi + 0x11], 0
jne 0x1401beacb
mov rax, qword [rax + 0x40]
mov edx, 1
call qword [str._a_]
cmp byte [rsi + 0x16], 5
je 0x1401bead5
mov byte [rsi + 0x16], 1
mov al, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
mov rax, qword [0x14044c8d0]
xor ebp, ebp
test rax, rax
je 0x1401be781
call qword [str._a_]
jmp 0x1401be781
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov edx, 4
call qword [str._a_]
test eax, eax
jne 0x1401be85f
jmp 0x1401beb3d
cmp eax, 5
je 0x1401beb37
jmp 0x1401beb41
mov ebx, 0x308
cmp byte [rsi + 0x12], 0
jne 0x1401be861
movzx eax, byte [rsi + 0x16]
cmp eax, 4
jae 0x1401beb18
cmp byte [rsi + 0x11], 0
je 0x1401beaf8
mov byte [rsi + 0x16], 4
mov r8, qword [rsi + 0x50]
mov rax, qword [r8]
test rax, rax
je 0x1401bebb8
cmp byte [rsi + 0xb], 0
je 0x1401beb99
lea rdx, [rsi + 0x68]
mov rax, qword [rax + 0x30]
mov rcx, r8
call qword [str._a_]
test eax, eax
je 0x1401bec7b
mov ebx, eax
cmp bl, 0xd
je 0x1401beb7f
movzx eax, bl
cmp eax, 0xa
jne 0x1401be861
mov dword [rsi + 0x30], ebx
mov byte [rsi + 0x15], 6
lea rax, [0x14035a4c0]
mov qword [rsi + 0x110], rax
jmp 0x1401be861
mov rax, qword [rax + 0x28]
mov rcx, r8
mov edx, 2
call qword [str._a_]
test eax, eax
jne 0x1401beb6c
mov r8, qword [rsi + 0x50]
mov rax, qword [r8]
jmp 0x1401beb53
xor ebx, ebx
cmp byte [rsi + 9], 2
je 0x1401bec37
mov r14, qword [rsi]
lea r9, [rsp + 0x30]
mov dword [r9], 0xaaaaaaaa
mov rdx, qword [rsi + 0xe0]
mov rax, qword [r14 + 0x38]
mov rcx, r14
xor r8d, r8d
call qword [str._a_]
mov ebx, eax
mov r8, qword [rsi + 0x50]
test eax, eax
jne 0x1401bec2b
cmp dword [rsp + 0x30], 0
je 0x1401bec2b
lea rcx, [rsp + 0x2c]
mov dword [rcx], 0
mov rdx, qword [rsi + 0xe0]
mov rax, qword [r14 + 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, r14
mov r9d, 0x802
call qword [str._a_]
mov ebx, eax
test eax, eax
je 0x1401bec94
mov r8, qword [rsi + 0x50]
mov rax, qword [r8]
test rax, rax
jne 0x1401beb4d
cmp byte [rsi + 8], 0
jne 0x1401bec6e
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401bec68
cmp byte [rsi + 0x11], 0
jne 0x1401bec5e
mov rax, qword [rax + 0x40]
mov edx, 1
call qword [str._a_]
cmp byte [rsi + 0x16], 5
je 0x1401bec68
mov byte [rsi + 0x16], 1
mov al, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
test ebx, ebx
jne 0x1401beb6e
jmp 0x1401be789
xor edx, edx
cmp byte [rsi + 0x10], 0
sete dl
mov rcx, rsi
call fcn.14035a5e0
mov ebx, eax
mov byte [rsi + 0x15], 0
jmp 0x1401bec6e
xor ebx, ebx
test byte [rsp + 0x2c], 1
je 0x1401bec27
lea rax, [0x14040f811]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.cannot_open_file
mov ebx, reloc.WS2_32.dll_ntohl
mov ecx, reloc.WS2_32.dll_ntohl
mov r9d, 0xf3d4
call fcn.1401aeb90
mov r14, qword [rsi + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x1401bec27
mov rax, qword [rax + 8]
mov rcx, r14
call qword [str._a_]
mov qword [r14], 0
jmp 0x1401bec27
add edi, 3
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
mov edx, edi
mov r8d, 1
mov r9d, 5
call qword [str._a_]
mov eax, 0xfffffffe
mov ecx, edi
rol eax, cl
and dword [r14 + 0x8c], eax
jmp 0x1401be55d
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
jmp 0x1401be58e
mov rdi, qword [rcx + 0x40]
cmp dword [rcx + 0x30], 0
je 0x1401bed4b
call fcn.1401b6bf0
mov rcx, rdi
test rdi, rdi
je 0x1401be5b1
jmp 0x1401bed3c
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
xor edx, edx
xor r8d, r8d
call qword [str._a_]
jmp 0x1401be46e
mov rax, qword [0x14043f590]
mov rcx, qword [r14 + 0x48]
mov edx, 1
xor r8d, r8d
call qword [str._a_]
test rax, rax
je 0x1401be5c1
mov rcx, qword [rax]
movsxd r8, dword [r14 + 0x28]
xor edx, edx
call fcn.1402b6a10
mov edi, 2
jmp 0x1401be5c1