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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov qword [rbp + 0xc8], 0xfffffffffffffffe
mov qword [rsp + 0x480], rbx
mov rax, qword [0x180001b10]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rdi, rdx
mov r13, rcx
mov qword [rbp], rcx
mov qword [rbp + 0xe0], rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
lea rsi, [rcx + 0x10]
mov qword [rbp - 0x10], rsi
mov qword [rsi], rax
mov qword [rsi + 8], rax
call fcn.180059ae0
mov qword [rsi], rax
cmp qword [rdi + 0x18], 8
jb 0x180057e91
mov rcx, qword [rdi]
jmp 0x180057e94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.180072cf0
nop
mov rdx, rax
mov rcx, r13
call fcn.18004f0f0
nop
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x180057edf
lock dec dword [rbx + 8]
jne 0x180057edf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x180057edf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [r13]
test rax, rax
je 0x1800584bb
cmp qword [rax], 0
je 0x1800584bb
xor edi, edi
test rax, rax
mov r12d, edi
je 0x180057f03
mov r12, qword [rax]
movsxd rax, dword [r12 + 0x3c]
add rax, r12
mov qword [rsp + 0x38], rax
mov eax, dword [rax + 0x88]
add rax, r12
mov qword [rbp + 0x10], rax
mov ecx, dword [rax + 0x20]
add rcx, r12
mov qword [rbp + 0x18], rcx
mov edx, dword [rax + 0x1c]
add rdx, r12
mov qword [rbp - 8], rdx
mov r8d, dword [rax + 0x24]
add r8, r12
mov qword [rbp + 8], r8
mov r15d, edi
cmp dword [rax + 0x18], 0
jbe 0x1800584b3
mov r13, qword [rsp + 0x38]
nop
mov eax, r15d
mov r14d, dword [rcx + rax*4]
add r14, r12
movzx eax, word [r8 + rax*2]
mov ebx, dword [rdx + rax*4]
mov ecx, dword [r13 + 0x88]
cmp ebx, ecx
jb 0x180058385
add ecx, dword [r13 + 0x8c]
cmp ebx, ecx
jae 0x180058385
lea rdx, [r12 + rbx]
mov qword [rbp + 0x248], rdi
mov qword [rbp + 0x250], rdi
mov qword [rbp + 0x250], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x248], rdi
mov byte [rbp + 0x238], 0
cmp byte [rdx], 0
jne 0x180057fb5
mov r8, rdi
jmp 0x180057fca
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180057fc0
lea rcx, [rbp + 0x238]
call fcn.1800120d0
nop
mov byte [rbp + 0x230], 0x2e
mov rsi, qword [rbp + 0x248]
test rsi, rsi
je 0x180058054
cmp rsi, 1
jb 0x180058054
lea rdi, [rbp + 0x238]
cmp qword [rbp + 0x250], 0x10
cmovae rdi, qword [rbp + 0x238]
test rsi, rsi
je 0x180058054
mov r8, rsi
mov edx, 0x2e
mov rcx, rdi
call fcn.1800b40e0
mov rbx, rax
test rax, rax
je 0x180058054
cmp byte [rax], 0x2e
je 0x180058038
sub rdi, rax
dec rdi
add rsi, rdi
lea rdi, [rax + 1]
jmp 0x180058007
lea rax, [rbp + 0x238]
cmp qword [rbp + 0x250], 0x10
cmovae rax, qword [rbp + 0x238]
sub rbx, rax
jmp 0x180058058
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x238]
call fcn.18003e350
nop
mov rdx, rax
lea rcx, [rbp + 0x258]
call fcn.180057900
nop
cmp qword [rbp + 0x38], 0x10
jb 0x18005808f
mov rcx, qword [rbp + 0x20]
call fcn.18008fef0
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
xor esi, esi
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], sil
lea r8, [rbx + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x238]
call fcn.18003e350
nop
mov rdx, rax
lea rcx, [rbp + 0x278]
call fcn.180057900
nop
cmp qword [rbp + 0x98], 0x10
jb 0x1800580e3
mov rcx, qword [rbp + 0x80]
call fcn.18008fef0
mov qword [rbp + 0x98], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x90], rsi
mov byte [rbp + 0x80], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
cmp byte [r14], 0
jne 0x180058124
mov r8, rsi
jmp 0x18005813a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [r14 + r8], 0
jne 0x180058130
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1800120d0
nop
lea rdx, [rbp + 0x258]
lea rcx, [rbp + 0xb8]
call fcn.180057be0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rbx, qword [rax + 8]
mov rdi, qword [rax]
test rbx, rbx
je 0x18005818b
lock inc dword [rbx + 0xc]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18005818b
lock dec dword [rcx + 0xc]
jne 0x18005818b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rbp - 0x80], esi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x278]
lea rcx, [rbp - 0x78]
call fcn.180012300
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
test rbx, rbx
je 0x180058202
lock inc dword [rbx + 0xc]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180058202
lock dec dword [rcx + 0xc]
jne 0x180058202
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180058221
lock dec dword [rcx + 0xc]
jne 0x180058221
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x60]
call fcn.180057900
nop
mov rdx, rax
mov rsi, qword [rbp - 0x10]
mov rcx, rsi
call fcn.180058c00
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.180058700
nop
cmp qword [rbp + 0x78], 8
jb 0x18005825c
mov rcx, qword [rbp + 0x60]
call fcn.18008fef0
mov qword [rbp + 0x78], 7
xor edi, edi
mov qword [rbp + 0x70], rdi
mov word [rbp + 0x60], di
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180058284
lock dec dword [rcx + 0xc]
jne 0x180058284
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp qword [rbp - 0x60], 8
jb 0x180058294
mov rcx, qword [rbp - 0x78]
call fcn.18008fef0
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
mov rbx, qword [rbp + 0xc0]
test rbx, rbx
je 0x1800582ce
lock dec dword [rbx + 8]
jne 0x1800582ce
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x1800582ce
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp qword [rsp + 0x58], 0x10
jb 0x1800582e0
mov rcx, qword [rsp + 0x40]
call fcn.18008fef0
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], 0
cmp qword [rbp + 0x290], 8
jb 0x180058309
mov rcx, qword [rbp + 0x278]
call fcn.18008fef0
mov qword [rbp + 0x290], 7
mov qword [rbp + 0x288], rdi
mov word [rbp + 0x278], di
cmp qword [rbp + 0x270], 8
jb 0x180058338
mov rcx, qword [rbp + 0x258]
call fcn.18008fef0
mov qword [rbp + 0x270], 7
mov qword [rbp + 0x268], rdi
mov word [rbp + 0x258], di
cmp qword [rbp + 0x250], 0x10
jb 0x180058367
mov rcx, qword [rbp + 0x238]
call fcn.18008fef0
mov qword [rbp + 0x250], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x248], rdi
mov byte [rbp + 0x238], 0
jmp 0x180058492
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x60], 0
cmp byte [r14], 0
jne 0x1800583ad
mov r8, rdi
jmp 0x1800583bb
or r8, 0xffffffffffffffff
inc r8
cmp byte [r14 + r8], 0
jne 0x1800583b1
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1800120d0
nop
mov dword [rbp - 0x48], ebx
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x40], di
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.180057900
nop
mov rdx, rax
mov rcx, rsi
call fcn.180058c00
mov rcx, rax
lea rdx, [rbp - 0x48]
call fcn.180058700
nop
cmp qword [rbp + 0x58], 8
jb 0x180058423
mov rcx, qword [rbp + 0x40]
call fcn.18008fef0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rdi
mov word [rbp + 0x40], di
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18005844d
lock dec dword [rcx + 0xc]
jne 0x18005844d
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp qword [rbp - 0x28], 8
jb 0x18005845d
mov rcx, qword [rbp - 0x40]
call fcn.18008fef0
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x40], di
cmp qword [rsp + 0x78], 0x10
jb 0x18005847f
mov rcx, qword [rsp + 0x60]
call fcn.18008fef0
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x60], 0
inc r15d
mov rax, qword [rbp + 0x10]
cmp r15d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
jb 0x180057f50
mov r13, qword [rbp]
mov rax, r13
jmp 0x1800585ac
mov rdx, rdi
lea rcx, [rbp + 0xe8]
call fcn.18002fd90
mov rbx, rax
movdqa xmm0, xmmword [0x1801144b0]
movdqa xmmword [rbp + 0x2a0], xmm0
movdqa xmm1, xmmword [str.6_.mwrfrW]
movdqa xmmword [rbp + 0x2b0], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x2c0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x2d0], xmm1
movdqa xmmword [rbp + 0x2e0], xmm0
movdqa xmmword [rbp + 0x2f0], xmm1
movdqa xmmword [rbp + 0x300], xmm0
movdqa xmmword [rbp + 0x310], xmm1
mov r9b, 0x57
lea r8, [0x1800f53e0]
mov edx, 0x19
lea rcx, [rbp + 0x2a0]
call fcn.18005bc50
mov rdx, rax
lea rcx, [rbp + 0x130]
call fcn.18001d390
nop
mov rdx, rbx
mov rcx, rax
call fcn.18001d550
mov rdx, rax
lea rcx, [rbp + 0x108]
call fcn.18001d5d0
nop
cmp qword [rax + 0x18], 0x10
jb 0x180058573
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xa0]
call fcn.1800b3cb8
nop
lea rax, vtable.message_exception.0
mov qword [rbp + 0xa0], rax
lea rdx, [0x18015b288]
lea rcx, [rbp + 0xa0]
call fcn.1800b9878
nop
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.1800b33c0
mov rbx, qword [rsp + 0x480]
add rsp, 0x430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret