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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbx
push rsi
push rdi
push r12
sub rsp, 0x58
mov rdi, qword [rsp + 0xa8]
xor esi, esi
mov r10, qword [rcx + 0x10]
mov rbx, rcx
mov qword [rax + 0x10], rbp
mov qword [rax - 0x28], r13
mov r13, rdx
mov qword [rax - 0x30], r14
mov r14d, r8d
mov qword [rax - 0x38], r15
mov r15d, r9d
mov qword [rsp + 0x30], r10
test rdi, rdi
je 0x14007841f
cmp qword [rdx + 0x48], rsi
je 0x140078436
mov rcx, r10
call fcn.140043430
mov dword [rdi], eax
inc dword [rbx + 0x4c]
mov rbp, qword [rbx]
mov dword [rbx + 0x48], r14d
mov rdx, qword [r13 + 0x48]
mov r14d, dword [rdi]
test rdx, rdx
je 0x1400783e5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call fcn.14005c240
mov rdi, rax
jmp 0x1400783e8
mov rdi, rsi
cmp byte [rbp + 0x55], sil
jne 0x140078402
mov r9d, reloc.WS2_32.dll_recv
mov r8d, r14d
mov rdx, rdi
mov rcx, rbx
call fcn.140063a20
test rdi, rdi
je 0x140078412
mov rdx, rdi
mov rcx, rbp
call fcn.14005bf50
mov r14d, dword [rsp + 0x90]
mov r10, qword [rsp + 0x30]
cmp dword [rsp + 0xa0], esi
je 0x14007843a
test byte [r13 + 0x64], 8
je 0x14007843a
movzx eax, word [r13 + 0x5e]
jmp 0x14007843f
mov dword [rdi], esi
jmp 0x14007841f
movzx eax, word [r13 + 0x60]
movzx r12d, ax
mov dword [rsp + 0x80], r12d
cmp r12d, 1
jne 0x140078472
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x140078461
inc dword [rbx + 0x38]
mov edi, dword [rbx + 0x38]
jmp 0x14007849f
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov edi, dword [rbx + rax*4 + 0x18c]
jmp 0x14007849f
mov ecx, dword [rbx + 0x28]
mov edi, dword [rbx + 0x2c]
mov dword [rsp + 0xa8], edi
cmp r12d, ecx
jg 0x140078493
lea eax, [r12 + rdi]
sub ecx, r12d
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x28], ecx
jmp 0x1400784a6
mov eax, dword [rbx + 0x38]
lea edi, [rax + 1]
add eax, r12d
mov dword [rbx + 0x38], eax
mov dword [rsp + 0xa8], edi
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x1400784ca
cmp edi, dword [rsp + 0xb8]
jne 0x1400784c2
cmp qword [rax + 0x48], rsi
je 0x1400784ca
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x38], r12
test r12d, r12d
je 0x140078609
mov r12, qword [rsp + 0xb0]
mov ebp, edi
mov dword [rsp + 0xa0], edi
mov r15, rsi
mov rdi, rsi
nop
test r12, r12
je 0x140078514
mov rax, qword [r12 + 8]
movzx ecx, word [rax + r15*2]
mov rax, qword [r13 + 8]
cmp cx, word [rax + r15*2]
jne 0x140078514
cmp cx, 0xfffe
jne 0x1400785cf
mov rax, qword [r13 + 8]
movsx ecx, word [rax + r15*2]
cmp cx, 0xfffe
jne 0x14007864a
mov dword [rbx + 0x48], r14d
mov rax, qword [r13 + 0x50]
mov r14, qword [rbx]
mov rcx, qword [rax + 8]
mov rdx, qword [rdi + rcx]
test rdx, rdx
je 0x140078552
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call fcn.14005c240
mov rbp, rax
jmp 0x140078555
mov rbp, rsi
cmp byte [r14 + 0x55], sil
jne 0x14007856e
mov r8d, dword [rsp + 0xa0]
mov rdx, rbp
mov rcx, rbx
call fcn.140062f80
test rbp, rbp
je 0x14007857e
mov rdx, rbp
mov rcx, r14
call fcn.14005bf50
mov ebp, dword [rsp + 0xa0]
mov r10, qword [rsp + 0x30]
movsxd rax, dword [r10 + 0xb8]
test eax, eax
jle 0x1400785cf
lea rcx, [rax + rax*2]
mov rax, qword [r10 + 0x68]
cmp byte [rax + rcx*8 - 0x18], 0x5c
lea r14, [rax + rcx*8]
jne 0x1400785cf
mov rcx, qword [r10]
cmp byte [rcx + 0x55], sil
jne 0x1400785cf
movsx edx, byte [r14 - 0x17]
mov r8, qword [r14 - 8]
call fcn.140043b20
mov r10, qword [rsp + 0x30]
mov word [r14 - 0x18], 0xa1
mov qword [r14 - 8], rsi
mov r14d, dword [rsp + 0x90]
inc ebp
inc r15
mov dword [rsp + 0xa0], ebp
add rdi, 0x28
cmp r15, qword [rsp + 0x38]
jl 0x1400784f0
mov edi, dword [rsp + 0xa8]
mov r12d, dword [rsp + 0x80]
mov r15d, dword [rsp + 0x98]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
test r15d, r15d
je 0x140078696
mov rax, qword [r10 + 0x18]
movsxd rdx, dword [r10 + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x140078666
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov r8d, edi
mov edx, 0x63
mov rcx, r10
call fcn.140042d70
jmp 0x140078696
mov rdx, qword [r13 + 0x18]
mov r9d, ecx
mov rcx, qword [rbx + 0x10]
mov r8d, r14d
mov dword [rsp + 0x20], ebp
call fcn.140060d50
jmp 0x140078585
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r10 + 0xb8], eax
mov rax, qword [r10 + 0x68]
mov word [rax + rcx*8], 0x63
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], rsi
mov r15, qword [rsp + 0x40]
cmp r12d, 1
jne 0x1400786f5
test edi, edi
je 0x14007870f
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14007870f
movzx ecx, byte [rbx + 0x25]
lea rax, [rbx + 0xc4]
test ecx, ecx
je 0x1400786cf
nop dword [rax]
cmp dword [rax + 0xc], edi
je 0x1400786e5
inc esi
add rax, 0x14
cmp esi, ecx
jl 0x1400786c0
mov dword [rbx + rdx*4 + 0x18c], edi
mov eax, edi
inc byte [rbx + 0x1f]
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret
mov byte [rax + 6], 1
mov eax, edi
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8d, r12d
mov edx, edi
mov rcx, rbx
call fcn.140060c10
cmp r12d, dword [rbx + 0x28]
jle 0x14007870f
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], edi
mov eax, edi
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret