Function at 0x1402459c0
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 [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x128]
test rbx, rbx
je 0x140245ae5
mov dword [rsp + 0x30], 0
cmp byte [rbx + 0x40], 0
je 0x140245a32
cmp byte [rbx + 0x3f], 0
jne 0x140245a23
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
xor edx, edx
mov r8d, 1
mov r9d, 9
call qword [case.0x140318756.0]
xor eax, eax
mov byte [rbx + 0x40], al
mov dword [rbx + 0x7c], 0
mov byte [rbx + 0x43], al
movzx edx, word [rbx + 0x3c]
test dx, dx
js 0x140245a67
cmp byte [rbx + 0x3f], 0
jne 0x140245a61
add edx, 3
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
mov r8d, 1
mov r9d, 5
call qword [case.0x140318756.0]
mov word [rbx + 0x3c], 0xffff
mov rbx, qword [rsi + 0x128]
mov ebp, 1
lea r14, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
mov r9d, ebp
call fcn.14023e8f0
inc ebp
cmp eax, 0xffffffff
je 0x140245a78
mov edi, eax
mov eax, dword [rsp + 0x30]
or eax, edi
je 0x140245afd
inc dword [rsi + 0x84]
mov rax, qword [rsi + 0x70]
test rax, rax
je 0x140245ab6
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
jmp 0x140245aa4
mov rcx, qword [rsi + 0x120]
xor edx, edx
call fcn.140243850
cmp byte [rsi + 0x1b], 0
je 0x140245afd
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
xor edx, edx
xor r8d, r8d
call qword [case.0x140318756.0]
jmp 0x140245afd
xor edi, edi
cmp byte [rsi + 0x15], 0
je 0x140245b3a
mov rbx, qword [rsi + 0x128]
test rbx, rbx
jne 0x1402459f0
cmp byte [rsi + 0x10], 0
je 0x140245b88
mov ebx, edi
test edi, edi
je 0x140245c18
mov rcx, rsi
call fcn.1402415d0
jmp 0x140245c22
mov rax, qword [rsi + 0xe8]
mov rcx, qword [rsi + 0xf0]
call qword [case.0x140318756.0]
test eax, eax
je 0x140245be6
movzx eax, byte [rsi + 0x16]
cmp eax, 5
je 0x140245b4b
test eax, eax
jne 0x140245c40
cmp byte [rsi + 0x11], 0
jne 0x140245b77
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov edx, 1
call qword [case.0x140318756.0]
cmp eax, 5
je 0x140245b1e
test eax, eax
jne 0x140246113
mov al, byte [rsi + 0x16]
cmp al, 5
je 0x140245ece
mov byte [rsi + 0x16], 1
jmp 0x140245c48
cmp byte [rsi + 0x15], 0
jne 0x140245b07
test edi, edi
jne 0x140245b07
mov rax, qword [rsi + 0x128]
test rax, rax
je 0x140245bb4
cmp word [rax + 0x3c], 0
js 0x140245bb4
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140245c07
mov rcx, qword [rsi + 0x48]
cmp qword [rcx], 0
je 0x140245be2
lea rdx, [rsp + 0x30]
mov qword [rdx], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x140318756.0]
test eax, eax
je 0x140245bf0
mov ebx, eax
jmp 0x140245b11
xor eax, eax
jmp 0x140245c15
mov ebx, 5
jmp 0x140245b11
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsi + 0xc8]
add rax, rcx
dec rax
cqo
idiv rcx
cmp eax, dword [rsi + 0xbc]
jbe 0x140245c15
mov dword [rsi + 0xbc], eax
mov dword [rsi + 0x20], eax
mov al, 1
mov byte [rsi + 0x15], al
mov byte [rsi + 0x1c], al
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140319a10
mov eax, ebx
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp al, 1
ja 0x140245ece
mov r14, qword [rsi]
mov dword [rsp + 0x2c], 1
mov rax, qword [rsi + 0x50]
mov r12, qword [rax]
test r12, r12
jne 0x140245c90
mov rdx, qword [rsi + 0xe0]
mov rax, qword [r14 + 0x38]
lea r9, [rsp + 0x2c]
mov rcx, r14
xor r8d, r8d
call qword [case.0x140318756.0]
mov ebx, eax
test eax, eax
jne 0x140245d2c
cmp dword [rsp + 0x2c], 0
je 0x140245d2c
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 [case.0x140318756.0]
mov ebx, eax
xor ebp, ebp
or eax, dword [r15]
jne 0x140245e44
mov rax, qword [rsi + 0x128]
test rax, rax
je 0x140245cd7
cmp word [rax + 0x3c], 0
js 0x140245cd7
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140245d19
mov rcx, qword [rsi + 0x48]
cmp qword [rcx], 0
je 0x140245d39
lea rdx, [rsp + 0x30]
mov qword [rdx], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x140318756.0]
test eax, eax
jne 0x140245bdb
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsi + 0xc8]
add rax, rcx
dec rax
cqo
idiv rcx
cmp eax, dword [rsi + 0xbc]
jbe 0x140245d3b
mov dword [rsi + 0xbc], eax
jmp 0x140245ddf
test ebx, ebx
jne 0x140245b11
jmp 0x140246083
xor eax, eax
test r12, r12
jne 0x140245ddf
test eax, eax
jne 0x140245ddf
mov rax, qword [0x14043f908]
test rax, rax
je 0x140245d5e
call qword [case.0x140318756.0]
movzx eax, byte [rsi + 0x16]
cmp eax, 5
ja 0x140245d83
mov ecx, 0x23
bt ecx, eax
jae 0x140245d83
cmp byte [rsi + 0x11], 0
je 0x140245e8d
cmp al, 5
je 0x140245d83
mov byte [rsi + 0x16], 2
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x140245d9f
mov rdx, qword [rsi + 0xe0]
mov rcx, r14
xor r8d, r8d
call qword [case.0x140318756.0]
cmp byte [rsi + 8], 0
jne 0x140245eab
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140245dd4
cmp byte [rsi + 0x11], 0
jne 0x140245dca
mov rax, qword [rax + 0x40]
mov edx, 1
call qword [case.0x140318756.0]
cmp byte [rsi + 0x16], 5
je 0x140245dd4
mov byte [rsi + 0x16], 1
mov al, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x140245eab
test r12, r12
je 0x140245e4e
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 [case.0x140318756.0]
mov ebx, eax
cmp eax, 0x20a
cmove ebx, r14d
test r12, r12
jne 0x140245e39
mov r14, qword [rsi + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x140245e39
mov rax, qword [rax + 8]
mov rcx, r14
call qword [case.0x140318756.0]
mov qword [r14], 0
xor ebp, ebp
cmp byte [rsp + 0x30], 0
setne bpl
test ebx, ebx
jne 0x140245b11
jmp 0x140245ec6
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 [case.0x140318756.0]
cmp eax, 0xe
je 0x140245ec1
mov ebx, eax
test eax, eax
je 0x140245de4
jmp 0x140245e44
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov edx, 2
call qword [case.0x140318756.0]
test eax, eax
je 0x140246241
mov rax, qword [0x14043f910]
xor ebp, ebp
test rax, rax
je 0x140245ec6
call qword [case.0x140318756.0]
jmp 0x140245ec6
mov ebp, 1
test ebp, ebp
je 0x140246083
mov ebx, 0x308
cmp byte [rsi + 0x12], 0
jne 0x140245b11
movzx eax, byte [rsi + 0x16]
cmp eax, 4
jb 0x140245eeb
cmp eax, 5
jne 0x140245ef5
cmp byte [rsi + 0x11], 0
je 0x140245f3f
mov byte [rsi + 0x16], 4
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x140245f61
cmp byte [rsi + 0xb], 0
je 0x14024611a
lea rdx, [rsi + 0x68]
mov rax, qword [rax + 0x30]
call qword [case.0x140318756.0]
mov ebx, eax
test eax, eax
jne 0x14024612f
xor edx, edx
cmp byte [rsi + 0x10], 0
sete dl
mov rcx, rsi
call fcn.140242280
mov ebx, eax
mov byte [rsi + 0x15], 0
jmp 0x14024607b
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov edx, 4
call qword [case.0x140318756.0]
mov ebx, eax
test eax, eax
jne 0x140245b11
jmp 0x140245ef1
xor ebx, ebx
cmp byte [rsi + 9], 2
je 0x140246044
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 [case.0x140318756.0]
mov ebx, eax
test eax, eax
jne 0x140246034
cmp dword [rsp + 0x30], 0
je 0x140246034
lea rcx, [rsp + 0x2c]
mov dword [rcx], 0
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, 0x802
call qword [case.0x140318756.0]
mov ebx, eax
test eax, eax
jne 0x140246034
xor ebx, ebx
test byte [rsp + 0x2c], 1
je 0x140246034
lea rax, [0x1403cc120]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.cannot_open_file
mov ebx, recvfrom
mov ecx, recvfrom
mov r9d, 0xed49
call fcn.140230130
mov r14, qword [rsi + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x140246034
mov rax, qword [rax + 8]
mov rcx, r14
call qword [case.0x140318756.0]
mov qword [r14], 0
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
test rax, rax
jne 0x140245f01
cmp byte [rsi + 8], 0
jne 0x14024607b
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140246075
cmp byte [rsi + 0x11], 0
jne 0x14024606b
mov rax, qword [rax + 0x40]
mov edx, 1
call qword [case.0x140318756.0]
cmp byte [rsi + 0x16], 5
je 0x140246075
mov byte [rsi + 0x16], 1
mov al, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
test ebx, ebx
jne 0x14024612f
cmp byte [rsi + 0x10], 0
jne 0x140245aed
cmp byte [rsi + 0x1c], 0
je 0x14024619d
movdqa xmm0, xmmword [0x1403bc150]
lea rdx, [rsp + 0x30]
movdqa xmmword [rdx], xmm0
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov r9d, 0x18
mov r8d, reloc.WS2_32.dll_recv
call qword [case.0x140318756.0]
test eax, eax
je 0x1402460da
cmp eax, 0x20a
jne 0x140246113
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqu xmm0, xmmword [rsi + 0x88]
pcmpeqb xmm0, xmmword [rsp + 0x30]
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x140246193
inc dword [rsi + 0x84]
mov rax, qword [rsi + 0x70]
test rax, rax
je 0x140246166
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
jmp 0x140246101
mov edi, eax
jmp 0x140245b07
mov rax, qword [rax + 0x28]
mov edx, 2
call qword [case.0x140318756.0]
mov ebx, eax
test eax, eax
je 0x14024615a
cmp bl, 0xd
je 0x140246140
movzx eax, bl
cmp eax, 0xa
jne 0x140245b11
mov dword [rsi + 0x30], ebx
mov byte [rsi + 0x15], 6
lea rax, [0x140240620]
mov qword [rsi + 0x110], rax
jmp 0x140245b11
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
jmp 0x140245f0b
mov rcx, qword [rsi + 0x120]
xor edx, edx
call fcn.140243850
cmp byte [rsi + 0x1b], 0
je 0x140246193
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
xor edx, edx
xor r8d, r8d
call qword [case.0x140318756.0]
cmp byte [rsi + 0x10], 0
jne 0x140245aed
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x130]
mov rax, qword [rcx + 0x38]
xor r8d, r8d
call qword [case.0x140318756.0]
mov edi, eax
test eax, eax
jne 0x140245aed
cmp dword [rsp + 0x2c], 0
je 0x140246249
mov rax, qword [rsi + 0x128]
test rax, rax
je 0x1402461eb
cmp word [rax + 0x3c], 0
js 0x1402461eb
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140246231
mov rcx, qword [rsi + 0x48]
cmp qword [rcx], 0
je 0x14024627f
lea rdx, [rsp + 0x30]
mov qword [rdx], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x140318756.0]
test eax, eax
jne 0x14024629b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsi + 0xc8]
add rax, rcx
dec rax
cqo
idiv rcx
cmp eax, dword [rsi + 0xbc]
jbe 0x14024625e
mov dword [rsi + 0xbc], eax
jmp 0x140246262
mov al, byte [rsi + 0x16]
jmp 0x140245d7b
xor edi, edi
cmp byte [rsi + 9], 5
jne 0x140245aed
mov byte [rsi + 9], 0
jmp 0x140245aed
test eax, eax
je 0x14024627f
cmp byte [rsi + 0x10], 0
jne 0x140246272
cmp qword [rsi + 0x128], 0
je 0x1402462a2
mov dword [0], 1
jmp 0x1402462f1
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1402462f1
mov rdx, qword [rsi + 0x130]
xor r8d, r8d
call qword [case.0x140318756.0]
mov edi, eax
jmp 0x140245aed
mov edi, recvfrom
cmp byte [rsi + 0x11], 0
jne 0x140245aed
cmp byte [rsi + 8], 0
je 0x1402462f8
mov rdi, qword [rsi + 0x50]
mov rax, qword [rdi]
test rax, rax
je 0x1402462d7
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x140318756.0]
mov qword [rdi], 0
mov rcx, rsi
call fcn.140246320
mov edi, eax
test eax, eax
jne 0x140245aed
mov byte [rsi + 9], 5
mov byte [rsi + 0x15], 0
xor edi, edi
jmp 0x140245aed
mov rax, qword [rsi + 0x48]
mov rax, qword [rax]
cmp dword [rax], 2
jl 0x140245aed
cmp qword [rax + 0x68], 0
jne 0x1402462b7
jmp 0x140245aed