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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
mov r13d, dword [rsp + 0x100]
mov r12, rdx
mov rsi, qword [rcx]
mov rdx, rcx
mov dword [rsp + 0x50], r13d
mov dil, 1
inc r13d
mov qword [rsp + 0x80], rsi
mov dword [rsp + 0x4c], r13d
inc r13d
mov rbx, qword [rdx + 0x10]
mov dword [rsp + 0x54], r13d
inc r13d
mov r14d, r13d
mov dword [rsp + 0x40], r13d
lea ebp, [r13 + 1]
add r13d, 2
mov dword [rsp + 0x68], r13d
inc r13d
mov dword [rsp + 0x64], r13d
inc r13d
cmp dword [rdx + 0x38], r13d
mov ecx, r13d
mov dword [rsp + 0x5c], ebp
cmovg ecx, dword [rdx + 0x38]
mov dword [rdx + 0x38], ecx
test rbx, rbx
jne 0x1800566ab
cmp qword [rdx + 0xa0], rbx
jne 0x180056697
test byte [rsi + 0x5c], 8
jne 0x180056697
mov byte [rdx + 0x23], dil
mov rcx, rdx
call fcn.180032670
mov rbx, rax
test rax, rax
je 0x18005714f
test r12, r12
je 0x18005714f
cmp dword [r12 + 0x38], 0
je 0x18005714f
mov rdx, qword [r12]
lea r8, [0x18014e614]
mov r9d, 0x5c
lea rcx, str.sqlite__
call fcn.180065770
test eax, eax
je 0x18005714f
mov rdx, qword [r12 + 0x70]
mov rcx, rsi
mov qword [rsp + 0x98], r15
call fcn.180076730
mov rcx, qword [rsi + 0x20]
xor r9d, r9d
mov rsi, qword [rsp + 0xe0]
mov r8, qword [r12]
movsxd r15, eax
mov rdx, r15
mov dword [rsp + 0x60], r15d
shl rdx, 5
mov rdx, qword [rdx + rcx]
mov rcx, rsi
mov qword [rsp + 0x20], rdx
lea edx, [r9 + 0x1c]
call fcn.180058f50
test eax, eax
jne 0x180057147
mov rax, qword [r12]
xor r9d, r9d
mov r8d, dword [r12 + 0x38]
mov edx, r15d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180059010
mov ecx, dword [rsp + 0x108]
mov r9, r12
mov r8d, dword [rsp + 0x60]
mov edx, ecx
mov dword [rsp + 0x7c], ecx
inc ecx
mov r15d, ecx
mov dword [rsp + 0x44], ecx
inc ecx
mov dword [rsp + 0x20], WSAGetLastError
cmp dword [rsi + 0x34], ecx
cmovg ecx, dword [rsi + 0x34]
mov dword [rsi + 0x34], ecx
mov rcx, rsi
call fcn.18006b710
mov r8, qword [r12]
mov edx, ebp
mov rcx, rbx
call fcn.180032e20
mov rbp, qword [r12 + 0x10]
xor ecx, ecx
mov qword [rsp + 0x70], rbp
test rbp, rbp
je 0x18005705d
mov rax, qword [rsp + 0xf0]
nop word [rax + rax]
test rax, rax
je 0x1800567ce
cmp rax, rbp
jne 0x18005704b
cmp qword [rbp + 0x48], 0
movzx eax, dil
cmovne ecx, eax
test byte [r12 + 0x40], 0x20
mov byte [rsp + 0x100], cl
je 0x1800568a4
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
jne 0x1800568a4
movzx edi, word [rbp + 0x5e]
mov r8, qword [r12]
lea r12d, [rdi - 1]
mov edx, dword [rsp + 0x68]
mov rcx, rbx
call fcn.180032e20
mov eax, dword [rsp + 0x60]
lea ecx, [r12 + r13]
cmp dword [rsi + 0x38], ecx
mov r8d, r15d
mov edx, WSAGetLastError
mov dword [rsp + 0x20], eax
cmovg ecx, dword [rsi + 0x38]
mov dword [rsi + 0x38], ecx
mov rcx, rbx
mov r9d, dword [rbp + 0x58]
call fcn.180032c00
mov rdx, rbp
mov rcx, rsi
call fcn.180033fa0
mov esi, dword [rsp + 0x4c]
mov r8d, edi
inc esi
mov edx, 0x46
mov r9d, esi
mov rcx, rbx
call fcn.180032d50
mov edi, dword [rsp + 0x4c]
mov edx, 0x46
movzx r8d, word [rbp + 0x5e]
mov rcx, rbx
lea r9d, [rdi + 2]
call fcn.180032d50
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x1800568c3
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov r9d, esi
mov rcx, rbx
lea edx, [r8 + 0x3f]
call fcn.180032ba0
mov edx, eax
jmp 0x1800568ec
test byte [rbp + 0x64], 8
movzx edi, word [rbp + 0x60]
mov r8, qword [rbp]
je 0x180056802
movzx r12d, word [rbp + 0x5e]
dec r12d
jmp 0x180056806
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], 0x3f
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x180056908
lea r8, [0x180150be0]
mov edx, 0xfffffff8
call fcn.180033be0
jmp 0x180056950
test edx, edx
jns 0x180056914
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x180056941
mov r9d, 0xfffffff8
lea r8, [0x180150be0]
mov rcx, rbx
call fcn.180033df0
jmp 0x180056950
lea rax, [0x180150be0]
mov byte [rdx + 1], 0xf8
mov qword [rdx + 0x10], rax
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x180056971
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
mov r8d, r15d
mov edx, 0x24
mov rcx, rbx
call fcn.180032ce0
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x58], eax
mov esi, eax
lea edx, [r8 + 0x46]
call fcn.180032d50
mov edi, dword [rbx + 0xb8]
test r12d, r12d
jle 0x180056d13
mov rcx, rbx
call fcn.1800336e0
mov rcx, qword [rsp + 0x80]
mov r15d, eax
movsxd rdx, r12d
shl rdx, 2
mov dword [rsp + 0x78], eax
call fcn.180010400
mov qword [rsp + 0x88], rax
mov r14, rax
test rax, rax
je 0x18005701f
mov edx, ntohl
mov rcx, rbx
call fcn.180032c70
mov eax, dword [rbx + 0xb8]
mov dword [rsp + 0x48], eax
cmp r12d, 1
jne 0x180056a1e
cmp word [rbp + 0x5e], r12w
jne 0x180056a1e
cmp byte [rbp + 0x62], 0
je 0x180056a1e
mov r9d, r15d
lea edx, [r12 + 0x32]
mov r8d, r13d
mov rcx, rbx
call fcn.180032d50
xor eax, eax
mov esi, eax
test r12d, r12d
jle 0x180056b81
mov r15d, eax
nop
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [r15 + rdx]
call fcn.18005bc60
mov r9d, dword [rsp + 0x54]
mov r8d, esi
mov edx, 0x46
mov rcx, rbx
mov rbp, rax
call fcn.180032d50
mov eax, dword [rsp + 0x40]
mov r9d, esi
mov r8d, dword [rsp + 0x44]
mov edx, 0x5a
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.180032c00
mov rcx, qword [rbx + 0x18]
movsxd rdi, dword [rbx + 0xb8]
cmp dword [rcx + 0x3c], edi
jg 0x180056aaa
mov r8d, dword [rsp + 0x40]
lea eax, [rsi + r13]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [r9 + 0x34]
call fcn.180032ba0
mov edi, eax
jmp 0x180056add
lea eax, [rdi + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rdi + rdi*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], gethostname
lea rdx, [rax + rcx*8]
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov dword [rdx + 4], eax
lea eax, [rsi + r13]
mov dword [rdx + 8], ecx
mov dword [rdx + 0xc], eax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbx]
mov eax, edi
cmp byte [rcx + 0x61], 0
je 0x180056af7
mov r8, rbp
mov edx, 0xfffffffe
call fcn.180033be0
jmp 0x180056b38
test edi, edi
jns 0x180056b03
mov eax, dword [rbx + 0xb8]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x180056b2b
mov r9d, 0xfffffffe
mov r8, rbp
mov rcx, rbx
call fcn.180033df0
jmp 0x180056b38
test rbp, rbp
je 0x180056b38
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfe
mov dword [r14], edi
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x180056b5c
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 0x80
mov word [rax + rdx*8 + 2], cx
mov rbp, qword [rsp + 0x70]
inc esi
add r15, 8
add r14, 4
cmp esi, r12d
jl 0x180056a30
mov r14, qword [rsp + 0x88]
mov r15d, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x54]
mov r8d, r12d
mov edx, 0x46
mov rcx, rbx
call fcn.180032d50
mov edx, r15d
mov rcx, rbx
call fcn.180032dc0
mov ecx, dword [rsp + 0x48]
sub ecx, 1
mov edx, dword [rbx + 0xb8]
jns 0x180056bb3
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x180056bc5
lea rax, [0x1803e55e8]
jmp 0x180056bd4
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
xor r8d, r8d
mov dword [rax + 8], edx
mov edi, r8d
test r12d, r12d
jle 0x180056c96
mov ebp, dword [rsp + 0x44]
mov rsi, r14
nop dword [rax]
mov ecx, dword [rsi]
mov edx, dword [rbx + 0xb8]
test ecx, ecx
jns 0x180056bff
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x180056c11
lea rax, [0x1803e55e8]
jmp 0x180056c20
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x180056c53
lea eax, [rdi + r13]
mov r9d, edi
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rbx
call fcn.180032ba0
xor r8d, r8d
jmp 0x180056c82
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edi
lea rdx, [rax + rcx*8]
lea eax, [rdi + r13]
mov qword [rdx + 0x10], r8
mov dword [rdx + 0xc], eax
inc edi
add rsi, 4
cmp edi, r12d
jl 0x180056bf0
mov rbp, qword [rsp + 0x70]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x180056cb5
or eax, 0xffffffff
sub eax, r15d
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rsi, qword [rsp + 0x80]
cmp qword [rsi + 0x2a8], 0
je 0x180056cd4
mov rdx, r14
mov rcx, rsi
call fcn.180010080
jmp 0x180056d01
cmp r14, qword [rsi + 0x190]
jb 0x180056cf9
cmp r14, qword [rsi + 0x198]
jae 0x180056cf9
mov rax, qword [rsi + 0x188]
mov qword [r14], rax
mov qword [rsi + 0x188], r14
jmp 0x180056d01
mov rcx, r14
call fcn.180010010
mov r14d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x48]
mov r15d, dword [rsp + 0x44]
mov esi, dword [rsp + 0x58]
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
mov r12d, dword [rsp + 0x4c]
cmp dword [rax + 0x3c], edx
jg 0x180056d45
mov edx, 0x3f
mov dword [rsp + 0x20], r14d
mov r9d, r12d
mov rcx, rbx
lea r8d, [rdx - 0x3e]
call fcn.180032ba0
mov edx, eax
jmp 0x180056d77
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x3f
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x180056d93
lea r8, [0x180153b20]
mov edx, 0xfffffff8
call fcn.180033be0
jmp 0x180056ddb
test edx, edx
jns 0x180056d9f
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x180056dcc
mov r9d, 0xfffffff8
lea r8, [0x180153b20]
mov rcx, rbx
call fcn.180033df0
jmp 0x180056ddb
lea rax, [0x180153b20]
mov byte [rdx + 1], 0xf8
mov qword [rdx + 0x10], rax
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x180056dfc
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x180056e25
xor eax, eax
mov r9d, edi
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 5]
call fcn.180032ba0
jmp 0x180056e51
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov r9d, dword [rsp + 0x64]
mov edx, r12d
mov rcx, rbx
call fcn.180056500
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
mov r8d, dword [rsp + 0x5c]
cmp dword [rax + 0x3c], edx
jg 0x180056e94
mov r9d, 3
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea edx, [r9 + 0x63]
call fcn.180032ba0
mov edx, eax
xor r12d, r12d
jmp 0x180056ec6
lea rcx, [rdx + rdx*2]
xor r12d, r12d
lea eax, [rdx + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x66
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], 3
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x180056edf
lea r8, [0x180159494]
xor edx, edx
call fcn.180033be0
jmp 0x180056f0c
test edx, edx
jns 0x180056eeb
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea r8, [0x180159494]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.180033df0
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edi, dword [rsp + 0xf8]
cmp dword [rax + 0x3c], ecx
jg 0x180056f46
mov r9d, dword [rsp + 0x50]
mov r8d, edi
mov edx, 0x79
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.180032ba0
mov edx, dword [rsp + 0x50]
xor r12d, r12d
jmp 0x180056f74
mov edx, dword [rsp + 0x50]
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x79
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x180056f9d
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x7a
mov r8d, edi
mov rcx, rbx
call fcn.180032ba0
jmp 0x180056fc7
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x7a
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r12
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x180056fe8
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 8
mov word [rax + rdx*8 + 2], cx
mov edx, dword [rbx + 0xb8]
test esi, esi
jns 0x180056ff5
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
je 0x18005700a
lea rax, [0x1803e55e8]
mov dword [rax + 8], edx
jmp 0x180057029
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x180057029
mov r14d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
mov rax, qword [rsp + 0xf0]
xor ecx, ecx
movzx edi, byte [rsp + 0x100]
mov r12, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rbp + 0x28]
mov qword [rsp + 0x70], rbp
test rbp, rbp
jne 0x1800567c0
cmp qword [rsp + 0xf0], 0
jne 0x180057147
test dil, dil
je 0x180057147
mov r9d, dword [rsp + 0x64]
mov edx, 0x68
mov r8d, dword [rsp + 0x7c]
mov rcx, rbx
call fcn.180032d50
mov r8d, dword [rsp + 0x64]
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rbx
call fcn.180032ce0
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
mov edi, eax
lea edx, [r8 + 0x49]
call fcn.180032d50
mov r8d, dword [rsp + 0x5c]
xor eax, eax
mov dword [rsp + 0x30], eax
mov r9d, 3
lea rax, [0x180159494]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea edx, [r9 + 0x63]
call fcn.1800330e0
mov r12d, dword [rsp + 0x50]
mov edx, 0x79
mov r8d, dword [rsp + 0xf8]
mov r9d, r12d
mov rcx, rbx
call fcn.180032d50
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov edx, 0x7a
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.180032c00
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x18005713d
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 8
mov word [rax + rdx*8 + 2], cx
mov edx, edi
mov rcx, rbx
call fcn.1800339b0
mov r15, qword [rsp + 0x98]
add rsp, 0xa0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret