Function at 0x140054f70
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 0x140055018
mov rcx, rdx
call fcn.140078ba0
mov rbx, rax
test rax, rax
je 0x140055ac5
test r12, r12
je 0x140055ac5
cmp dword [r12 + 0x38], 0
je 0x140055ac5
mov rdx, qword [r12]
lea r8, [0x1400c77b4]
xor r9d, r9d
lea rcx, str.sqlite__
call fcn.140063b30
test eax, eax
je 0x140055ac5
mov rdx, qword [r12 + 0x70]
mov rcx, rsi
mov qword [rsp + 0x98], r15
call fcn.140074140
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.1400576d0
test eax, eax
jne 0x140055abd
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.140057790
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.140069570
mov r8, qword [r12]
mov edx, ebp
mov rcx, rbx
call fcn.140033bc0
mov rbp, qword [r12 + 0x10]
xor ecx, ecx
mov qword [rsp + 0x70], rbp
test rbp, rbp
je 0x1400559d3
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x140055132
cmp rax, rbp
jne 0x1400559c1
cmp qword [rbp + 0x48], 0
movzx eax, dil
cmovne ecx, eax
test byte [r12 + 0x40], 0x20
mov byte [rsp + 0x100], cl
je 0x140055208
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
jne 0x140055208
movzx edi, word [rbp + 0x5e]
mov r8, qword [r12]
lea r12d, [rdi - 1]
mov edx, dword [rsp + 0x68]
mov rcx, rbx
call fcn.140033bc0
mov eax, dword [rsp + 0x60]
lea ecx, [r12 + r13]
cmp dword [rsi + 0x38], ecx
mov r8d, r15d
mov edx, 0x6a
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.1400339a0
mov rdx, rbp
mov rcx, rsi
call fcn.140034b90
mov esi, dword [rsp + 0x4c]
mov r8d, edi
inc esi
mov edx, 0x38
mov r9d, esi
mov rcx, rbx
call fcn.140033af0
mov edi, dword [rsp + 0x4c]
mov edx, 0x38
movzx r8d, word [rbp + 0x5e]
mov rcx, rbx
lea r9d, [rdi + 2]
call fcn.140033af0
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x140055227
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov r9d, esi
mov rcx, rbx
lea edx, [r8 + 0x45]
call fcn.140033940
mov edx, eax
jmp 0x140055250
test byte [rbp + 0x64], 8
movzx edi, word [rbp + 0x60]
mov r8, qword [rbp]
je 0x140055166
movzx r12d, word [rbp + 0x5e]
dec r12d
jmp 0x14005516a
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], 0x45
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 + 0x55], 0
je 0x14005526c
lea r8, [0x1400c96b8]
mov edx, 0xfffffffc
call fcn.1400347a0
jmp 0x1400552b4
test edx, edx
jns 0x140055278
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 0x1400552a5
mov r9d, 0xfffffffc
lea r8, [0x1400c96b8]
mov rcx, rbx
call fcn.1400349e0
jmp 0x1400552b4
lea rax, [0x1400c96b8]
mov byte [rdx + 1], 0xfc
mov qword [rdx + 0x10], rax
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x1400552d5
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, 0x25
mov rcx, rbx
call fcn.140033a80
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x58], eax
mov esi, eax
lea edx, [r8 + 0x38]
call fcn.140033af0
mov edi, dword [rbx + 0xb8]
test r12d, r12d
jle 0x140055689
mov rcx, rbx
call fcn.140034280
mov rcx, qword [rsp + 0x80]
mov r15d, eax
movsxd rdx, r12d
shl rdx, 2
mov dword [rsp + 0x78], eax
call fcn.140012710
mov qword [rsp + 0x88], rax
mov r14, rax
test rax, rax
je 0x140055995
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.140033a10
mov eax, dword [rbx + 0xb8]
mov dword [rsp + 0x48], eax
cmp r12d, 1
jne 0x140055382
cmp word [rbp + 0x5e], r12w
jne 0x140055382
cmp byte [rbp + 0x62], 0
je 0x140055382
mov r9d, r15d
lea edx, [r12 + 0x4b]
mov r8d, r13d
mov rcx, rbx
call fcn.140033af0
xor eax, eax
mov esi, eax
test r12d, r12d
jle 0x1400554f1
mov r15d, eax
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [r15 + rdx]
call fcn.14005a2e0
mov r9d, dword [rsp + 0x54]
mov r8d, esi
mov edx, 0x38
mov rcx, rbx
mov rbp, rax
call fcn.140033af0
mov eax, dword [rsp + 0x40]
mov r9d, esi
mov r8d, dword [rsp + 0x44]
mov edx, 0x63
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400339a0
mov rcx, qword [rbx + 0x18]
movsxd rdi, dword [rbx + 0xb8]
cmp dword [rcx + 0x3c], edi
jg 0x14005541a
mov r8d, dword [rsp + 0x40]
lea eax, [rsi + r13]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [r9 + 0x4d]
call fcn.140033940
mov edi, eax
jmp 0x14005544d
lea eax, [rdi + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rdi + rdi*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x4d
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 + 0x55], 0
je 0x140055467
mov r8, rbp
mov edx, 0xfffffffd
call fcn.1400347a0
jmp 0x1400554a8
test edi, edi
jns 0x140055473
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 0x14005549b
mov r9d, 0xfffffffd
mov r8, rbp
mov rcx, rbx
call fcn.1400349e0
jmp 0x1400554a8
test rbp, rbp
je 0x1400554a8
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xfd
mov dword [r14], edi
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x1400554cc
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, pe_nt_image_headers64
mov word [rax + rdx*8 + 2], cx
mov rbp, qword [rsp + 0x70]
inc esi
add r15, 8
add r14, 4
cmp esi, r12d
jl 0x1400553a0
mov r14, qword [rsp + 0x88]
mov r15d, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x54]
mov r8d, r12d
mov edx, 0x38
mov rcx, rbx
call fcn.140033af0
mov edx, r15d
mov rcx, rbx
call fcn.140033b60
mov ecx, dword [rsp + 0x48]
sub ecx, 1
mov edx, dword [rbx + 0xb8]
jns 0x140055523
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x140055535
lea rax, [0x1401763d0]
jmp 0x140055544
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 0x140055606
mov ebp, dword [rsp + 0x44]
mov rsi, r14
nop dword [rax]
mov ecx, dword [rsi]
mov edx, dword [rbx + 0xb8]
test ecx, ecx
jns 0x14005556f
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x140055581
lea rax, [0x1401763d0]
jmp 0x140055590
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 0x1400555c3
lea eax, [rdi + r13]
mov r9d, edi
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov edx, 0x63
mov rcx, rbx
call fcn.140033940
xor r8d, r8d
jmp 0x1400555f2
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x63
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 0x140055560
mov rbp, qword [rsp + 0x70]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140055625
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 + 0x298], 0
je 0x140055644
mov rdx, r14
mov rcx, rsi
call fcn.140012380
jmp 0x140055677
cmp r14, qword [rsi + 0x180]
jb 0x14005566f
cmp r14, qword [rsi + 0x188]
jae 0x14005566f
mov rax, qword [rsi + 0x178]
mov qword [r14], rax
dec dword [rsi + 0x160]
mov qword [rsi + 0x178], r14
jmp 0x140055677
mov rcx, r14
call fcn.140012310
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 0x1400556bb
mov edx, 0x45
mov dword [rsp + 0x20], r14d
mov r9d, r12d
mov rcx, rbx
lea r8d, [rdx - 0x44]
call fcn.140033940
mov edx, eax
jmp 0x1400556ed
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], 0x45
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 + 0x55], 0
je 0x140055709
lea r8, [0x1400cb6b0]
mov edx, 0xfffffffc
call fcn.1400347a0
jmp 0x140055751
test edx, edx
jns 0x140055715
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 0x140055742
mov r9d, 0xfffffffc
lea r8, [0x1400cb6b0]
mov rcx, rbx
call fcn.1400349e0
jmp 0x140055751
lea rax, [0x1400cb6b0]
mov byte [rdx + 1], 0xfc
mov qword [rdx + 0x10], rax
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140055772
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 0x14005579b
xor eax, eax
mov r9d, edi
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 7]
call fcn.140033940
jmp 0x1400557c7
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], 7
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.140054e80
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0xb8]
mov r8d, dword [rsp + 0x5c]
cmp dword [rax + 0x3c], edx
jg 0x14005580a
mov r9d, 3
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea edx, [r9 + 0x62]
call fcn.140033940
mov edx, eax
xor r12d, r12d
jmp 0x14005583c
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], 0x65
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 + 0x55], 0
je 0x140055855
lea r8, [0x1400d08c4]
xor edx, edx
call fcn.1400347a0
jmp 0x140055882
test edx, edx
jns 0x140055861
mov edx, dword [rbx + 0xb8]
dec edx
movsxd rax, edx
lea r8, [0x1400d08c4]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.1400349e0
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edi, dword [rsp + 0xf8]
cmp dword [rax + 0x3c], ecx
jg 0x1400558bc
mov r9d, dword [rsp + 0x50]
mov r8d, edi
mov edx, 0x75
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.140033940
mov edx, dword [rsp + 0x50]
xor r12d, r12d
jmp 0x1400558ea
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], 0x75
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 0x140055913
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x76
mov r8d, edi
mov rcx, rbx
call fcn.140033940
jmp 0x14005593d
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x76
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 0x14005595e
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 0x14005596b
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x140055980
lea rax, [0x1401763d0]
mov dword [rax + 8], edx
jmp 0x14005599f
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 0x14005599f
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 0x140055124
cmp qword [rsp + 0xf0], 0
jne 0x140055abd
test dil, dil
je 0x140055abd
mov r9d, dword [rsp + 0x64]
mov edx, 0x66
mov r8d, dword [rsp + 0x7c]
mov rcx, rbx
call fcn.140033af0
mov r8d, dword [rsp + 0x64]
mov edx, socket
mov rcx, rbx
call fcn.140033a80
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
mov edi, eax
lea edx, [r8 + 0x3b]
call fcn.140033af0
mov r8d, dword [rsp + 0x5c]
xor eax, eax
mov dword [rsp + 0x30], eax
mov r9d, 3
lea rax, [0x1400d08c4]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea edx, [r9 + 0x62]
call fcn.140033e30
mov r12d, dword [rsp + 0x50]
mov edx, 0x75
mov r8d, dword [rsp + 0xf8]
mov r9d, r12d
mov rcx, rbx
call fcn.140033af0
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov edx, 0x76
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.1400339a0
mov eax, dword [rbx + 0xb8]
test eax, eax
jle 0x140055ab3
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.140034560
mov r15, qword [rsp + 0x98]
add rsp, 0xa0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret