Function at 0x497df0
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
mov rax, rsp
sub rsp, 0xe8
mov r11, qword [rcx]
mov qword [rax - 8], rbx
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov rsi, rcx
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
mov eax, dword [rcx + 0x54]
mov r15d, dword [rsp + 0x110]
mov rdi, qword [rsi + 0x10]
mov dword [rsp + 0x5c], r15d
inc r15d
mov rbx, rdx
mov dword [rsp + 0x4c], r15d
inc r15d
mov qword [rsp + 0x78], r11
mov dword [rsp + 0x58], r15d
inc r15d
mov byte [rsp + 0x54], 1
mov r13d, r15d
mov dword [rsp + 0x40], r15d
inc r15d
mov r12d, r15d
mov dword [rsp + 0x64], r15d
inc r15d
mov dword [rsp + 0x84], r15d
inc r15d
mov dword [rsp + 0x70], r15d
inc r15d
cmp eax, r15d
mov ecx, r15d
mov dword [rsp + 0x110], r15d
cmovg ecx, eax
xor r14d, r14d
test rdi, rdi
mov dword [rsi + 0x54], ecx
jne 0x497f46
mov rcx, rsi
call fcn.0044f4c0
test rax, rax
mov rdi, rax
mov qword [rsi + 0x10], rax
je 0x497f1d
mov rcx, qword [rax + 0x30]
movsxd rbx, dword [rax + 0x3c]
cmp dword [rcx + 0x60], ebx
jg 0x497ede
lea edx, [r14 + 1]
mov rcx, rax
call fcn.00441a80
test eax, eax
jne 0x497f15
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov rbx, qword [rsp + 0xf8]
mov byte [rax + rcx*8], 0x99
mov byte [rax + rcx*8 + 3], r14b
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], r14b
jmp 0x497f1d
mov rbx, qword [rsp + 0xf8]
cmp qword [rsi + 0x1c0], r14
jne 0x497f41
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x497f3a
mov r11, qword [rsp + 0x78]
mov byte [rsi + 0x23], 1
jmp 0x497f46
mov r11, qword [rsp + 0x78]
jmp 0x497f46
mov r11, qword [rsp + 0x78]
test rdi, rdi
je 0x498c85
test rbx, rbx
je 0x498c85
cmp dword [rbx + 0x3c], r14d
je 0x498c85
mov r10, qword [rbx]
mov qword [rsp + 0xd8], rbp
mov edx, 7
lea r9, str.sqlite_
lea rbp, [0x0069aea0]
mov r8, r10
movzx ecx, byte [r8]
dec edx
test cl, cl
je 0x497fa9
movzx eax, byte [r9]
movzx ecx, cl
movzx eax, byte [rax + rbp]
cmp byte [rcx + rbp], al
jne 0x497fa9
inc r8
inc r9
test edx, edx
jg 0x497f83
dec edx
test edx, edx
js 0x498c7d
movzx eax, byte [r9]
movzx edx, byte [rax + rbp]
movzx eax, byte [r8]
movzx ecx, byte [rax + rbp]
sub ecx, edx
je 0x498c7d
mov rdx, qword [rbx + 0x70]
mov ebp, 0xfff0bdc0
test rdx, rdx
mov dword [rsp + 0x48], ebp
je 0x498006
mov ecx, dword [r11 + 0x28]
mov ebp, r14d
mov dword [rsp + 0x48], r14d
test ecx, ecx
jle 0x498006
mov rax, qword [r11 + 0x20]
add rax, 0x18
cmp qword [rax], rdx
je 0x498002
inc ebp
add rax, 0x20
cmp ebp, ecx
jl 0x497ff3
mov dword [rsp + 0x48], ebp
mov rax, qword [r11 + 0x20]
xor r9d, r9d
movsxd rcx, ebp
shl rcx, 5
lea edx, [r9 + 0x1c]
mov r8, r10
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.00468030
test eax, eax
jne 0x498c7d
mov rax, qword [rbx]
mov r8d, dword [rbx + 0x3c]
xor r9d, r9d
mov edx, ebp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.00446990
mov r11d, dword [rsp + 0x118]
mov eax, dword [rsi + 0x50]
mov ecx, r11d
mov dword [rsp + 0x6c], r11d
inc r11d
mov r14d, r11d
mov dword [rsp + 0x44], r11d
inc r11d
cmp eax, r11d
mov edx, ecx
mov r9, rbx
cmovg r11d, eax
mov r8d, ebp
mov rcx, rsi
mov dword [rsi + 0x50], r11d
mov dword [rsp + 0x20], getservbyname
call fcn.00490560
mov rax, qword [rbx]
xor ecx, ecx
mov r9d, r12d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea edx, [rcx + 0x61]
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, rdi
call fcn.0044f620
mov r12, qword [rbx + 0x10]
test r12, r12
mov qword [rsp + 0x88], r12
je 0x498b87
mov rax, qword [rsp + 0x100]
test rax, rax
je 0x4980df
cmp rax, r12
jne 0x498b6c
mov eax, dword [rsp + 0x54]
cmp qword [r12 + 0x48], 0
mov ecx, 0
movzx eax, al
cmove eax, ecx
test byte [rbx + 0x48], 0x20
mov dword [rsp + 0x54], eax
je 0x498125
mov eax, dword [r12 + 0x64]
and al, 3
cmp al, 2
jne 0x498125
movzx ebx, word [r12 + 0x5e]
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
lea r13d, [rbx - 1]
mov dword [rsp + 0x50], r13d
jmp 0x498150
test byte [r12 + 0x64], 8
movzx ebx, word [r12 + 0x60]
mov rax, qword [r12]
je 0x498147
movzx r13d, word [r12 + 0x5e]
dec r13d
mov dword [rsp + 0x50], r13d
jmp 0x498150
lea r13d, [rbx - 1]
mov dword [rsp + 0x50], r13d
mov r9d, dword [rsp + 0x84]
mov dword [rsp + 0x30], ecx
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea edx, [r8 + 0x61]
mov rcx, rdi
call fcn.0044f620
mov eax, dword [rsi + 0x54]
lea r11d, [r13 + r15]
cmp eax, r11d
mov r8d, r14d
mov edx, getservbyname
cmovg r11d, eax
mov rcx, rdi
mov dword [rsp + 0x20], ebp
mov dword [rsi + 0x54], r11d
mov r9d, dword [r12 + 0x58]
call fcn.00441bf0
mov rdx, r12
mov rcx, rsi
call fcn.0048d8f0
mov rax, qword [rdi + 0x30]
movsxd rsi, dword [rdi + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x4981c9
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4981fd
inc dword [rdi + 0x3c]
mov rcx, qword [rdi + 8]
mov ebp, dword [rsp + 0x4c]
lea rdx, [rsi + rsi*2]
lea eax, [rbp + 1]
mov dword [rcx + rdx*8 + 8], eax
xor eax, eax
mov byte [rcx + rdx*8], Ordinal_27
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], ebx
mov dword [rcx + rdx*8 + 0xc], eax
mov qword [rcx + rdx*8 + 0x10], rax
mov byte [rcx + rdx*8 + 1], al
jmp 0x498201
mov ebp, dword [rsp + 0x4c]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
movzx esi, word [r12 + 0x5e]
cmp dword [rax + 0x60], ebx
jg 0x498225
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498253
inc dword [rdi + 0x3c]
mov rcx, qword [rdi + 8]
lea rdx, [rbx + rbx*2]
lea eax, [rbp + 2]
mov byte [rcx + rdx*8], Ordinal_27
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 8], eax
xor eax, eax
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 0xc], eax
mov qword [rcx + rdx*8 + 0x10], rax
mov byte [rcx + rdx*8 + 1], al
xor r8d, r8d
lea r9d, [rbp + 1]
mov rcx, rdi
lea edx, [r8 + 1]
mov dword [rsp + 0x20], ebp
call fcn.00441bf0
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi]
test rsi, rsi
je 0x4982b0
cmp byte [rcx + 0x50], 0
jne 0x4982b0
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rbx, [rax + rax*2]
movsx edx, byte [rsi + rbx*8 + 1]
mov r8, qword [rsi + rbx*8 + 0x10]
call fcn.00441fd0
lea rax, [0x0069bb70]
mov byte [rsi + rbx*8 + 1], 0xfb
mov qword [rsi + rbx*8 + 0x10], rax
jmp 0x4982c1
lea r8, [0x0069bb70]
mov edx, 0xfffffffb
call fcn.00441fd0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x4982d7
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 2
movsxd rsi, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
cmp dword [rax + 0x60], esi
mov dword [rsp + 0x80], esi
jg 0x49830b
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x49830b
mov dword [rsp + 0x80], 1
xor esi, esi
jmp 0x498338
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
lea rcx, [rsi + rsi*2]
xor esi, esi
mov byte [rax + rcx*8], WSAGetLastError
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x498356
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498384
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x58]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], Ordinal_27
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
test r13d, r13d
mov ebp, dword [rdi + 0x3c]
jle 0x49879e
mov rcx, rdi
call fcn.00441e70
mov rcx, qword [rsp + 0x78]
movsxd rdx, r13d
shl rdx, 2
mov r14d, eax
mov dword [rsp + 0x60], eax
call fcn.0043b030
test rax, rax
mov rsi, rax
mov qword [rsp + 0x90], rax
je 0x498b4b
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.00441ca0
cmp r13d, 1
mov ebp, dword [rdi + 0x3c]
mov dword [rsp + 0x68], ebp
jne 0x498400
cmp word [r12 + 0x5e], r13w
jne 0x498400
cmp byte [r12 + 0x62], 0
je 0x498400
lea edx, [r13 + 0x4c]
mov r9d, r14d
mov r8d, r15d
mov rcx, rdi
call fcn.00441dd0
xor eax, eax
test r13d, r13d
mov r12d, eax
jle 0x4985f8
mov r15, rax
mov r14, rsi
nop
nop
nop
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x40]
mov rdx, qword [r15 + rdx]
call fcn.00481760
mov rcx, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rcx + 0x60], ebx
mov r13, rax
jg 0x49845e
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498491
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0x58]
lea rcx, [rbx + rbx*2]
xor esi, esi
mov byte [rax + rcx*8], Ordinal_27
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
jmp 0x498493
xor esi, esi
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4984b1
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4984e6
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x44]
lea rcx, [rbx + rbx*2]
mov ebx, dword [rsp + 0x40]
mov byte [rax + rcx*8], Ordinal_50
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
jmp 0x4984ea
mov ebx, dword [rsp + 0x40]
mov rax, qword [rdi + 0x30]
movsxd rbp, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebp
jg 0x49850f
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x49850f
mov ebp, 1
jmp 0x498544
inc dword [rdi + 0x3c]
mov rcx, qword [rdi + 8]
mov eax, dword [rsp + 0x110]
lea rdx, [rbp + rbp*2]
add eax, r12d
mov dword [rcx + rdx*8 + 0xc], eax
mov byte [rcx + rdx*8], Ordinal_79
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], ebx
mov dword [rcx + rdx*8 + 8], esi
mov qword [rcx + rdx*8 + 0x10], rsi
mov byte [rcx + rdx*8 + 1], 0
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi]
mov eax, ebp
test rsi, rsi
je 0x4985a0
cmp byte [rcx + 0x50], 0
jne 0x4985a0
test ebp, ebp
jns 0x498561
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rbx, [rax + rax*2]
movsx edx, byte [rsi + rbx*8 + 1]
mov r8, qword [rsi + rbx*8 + 0x10]
call fcn.00441fd0
xor eax, eax
test r13, r13
mov qword [rsi + rbx*8 + 0x10], rax
jne 0x49858d
mov qword [rsi + rbx*8 + 0x10], rax
mov byte [rsi + rbx*8 + 1], al
jmp 0x4985ad
mov qword [rsi + rbx*8 + 0x10], r13
mov byte [rsi + rbx*8 + 1], 0xfc
jmp 0x4985ad
mov r8, r13
mov edx, 0xfffffffc
call fcn.00441fd0
mov dword [r14], ebp
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x4985c6
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x80
mov r13d, dword [rsp + 0x50]
inc r12d
add r15, 8
add r14, 4
cmp r12d, r13d
jl 0x498420
mov r14d, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov ebp, dword [rsp + 0x68]
mov r15d, dword [rsp + 0x110]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x498616
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49864b
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov edx, dword [rsp + 0x58]
lea rcx, [rbx + rbx*2]
xor r12d, r12d
mov byte [rax + rcx*8], Ordinal_27
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], r12b
jmp 0x49864e
xor r12d, r12d
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x49866c
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498699
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], reloc.WS2_32.dll_recv
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], 0
mov edx, dword [rdi + 0x3c]
lea eax, [rbp - 1]
cmp edx, eax
jbe 0x4986af
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov ebx, r12d
dec ecx
test r13d, r13d
mov dword [rax + 0x64], ecx
jle 0x498753
mov r14d, dword [rsp + 0x44]
mov rbp, rsi
nop
mov eax, dword [rbp]
mov edx, dword [rdi + 0x3c]
cmp edx, eax
jbe 0x4986e6
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov rax, qword [rdi + 0x30]
movsxd rsi, dword [rdi + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x498710
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49873f
mov rcx, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rdx, [rsi + rsi*2]
lea eax, [rbx + r15]
mov byte [rcx + rdx*8], Ordinal_50
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r14d
mov dword [rcx + rdx*8 + 8], ebx
mov qword [rcx + rdx*8 + 0x10], r12
mov dword [rcx + rdx*8 + 0xc], eax
mov byte [rcx + rdx*8 + 1], 0
inc ebx
add rbp, 4
cmp ebx, r13d
jl 0x4986d0
mov r14d, dword [rsp + 0x60]
mov ebp, dword [rsp + 0x68]
mov r8, qword [rdi + 0x30]
mov eax, 0xffffffff
sub eax, r14d
js 0x498776
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x498776
movsxd rcx, eax
mov eax, dword [rdi + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rdi + 0x3c]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
dec eax
mov dword [r8 + 0x64], eax
call fcn.00425ea0
mov r12, qword [rsp + 0x88]
mov r14d, dword [rsp + 0x44]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4987bc
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4987fa
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x4c]
mov r13d, dword [rsp + 0x40]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 1
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], 0
mov byte [rax + rcx*8 + 1], 0
jmp 0x4987ff
mov r13d, dword [rsp + 0x40]
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi]
test rsi, rsi
je 0x498840
cmp byte [rcx + 0x50], 0
jne 0x498840
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rbx, [rax + rax*2]
movsx edx, byte [rsi + rbx*8 + 1]
mov r8, qword [rsi + rbx*8 + 0x10]
call fcn.00441fd0
lea rax, [0x0069bbc0]
mov byte [rsi + rbx*8 + 1], 0xfb
mov qword [rsi + rbx*8 + 0x10], rax
jmp 0x498851
lea r8, [0x0069bbc0]
mov edx, 0xfffffffb
call fcn.00441fd0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x498867
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 2
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x498885
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x4988b6
inc dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 4], r14d
xor r14d, r14d
mov byte [rax + rcx*8], 9
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], r14b
jmp 0x4988b9
xor r14d, r14d
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x4988d7
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x49890a
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x4c]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x70]
mov byte [rax + rcx*8], 1
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov dword [rax + rcx*8 + 0xc], edx
mov byte [rax + rcx*8 + 1], 0
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi]
test rsi, rsi
je 0x498950
cmp byte [rcx + 0x50], 0
jne 0x498950
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rbx, [rax + rax*2]
movsx edx, byte [rsi + rbx*8 + 1]
mov r8, qword [rsi + rbx*8 + 0x10]
call fcn.00441fd0
lea rax, [0x0069bc10]
mov byte [rsi + rbx*8 + 1], 0xfb
mov qword [rsi + rbx*8 + 0x10], rax
jmp 0x498961
lea r8, [0x0069bc10]
mov edx, 0xfffffffb
call fcn.00441fd0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x498977
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 1
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x49899c
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x49899c
mov ebx, 1
jmp 0x4989cf
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov edx, dword [rsp + 0x64]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], gethostbyaddr
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], 3
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], 0
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi]
test rsi, rsi
je 0x498a39
cmp byte [rcx + 0x50], 0
jne 0x498a39
test ebx, ebx
jns 0x4989ea
mov ebx, dword [rdi + 0x3c]
dec ebx
movsxd rax, ebx
lea rbx, [rax + rax*2]
movsx edx, byte [rsi + rbx*8 + 1]
mov r8, qword [rsi + rbx*8 + 0x10]
call fcn.00441fd0
lea rcx, [0x006a27d4]
mov qword [rsi + rbx*8 + 0x10], r14
mov rax, rcx
nop
inc rax
cmp byte [rax], 0
jne 0x498a10
sub eax, ecx
mov rdx, rcx
mov rcx, qword [rdi]
and eax, 0x3fffffff
movsxd r8, eax
call fcn.0043b390
mov byte [rsi + rbx*8 + 1], 0xff
mov qword [rsi + rbx*8 + 0x10], rax
jmp 0x498a47
lea r8, [0x006a27d4]
xor edx, edx
call fcn.00441fd0
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x498a65
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498a9d
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
mov esi, dword [rsp + 0x108]
mov ebp, dword [rsp + 0x5c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x4a
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], 0
jmp 0x498aa8
mov esi, dword [rsp + 0x108]
mov ebp, dword [rsp + 0x5c]
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rax + 0x60], ebx
jg 0x498ac6
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x498af1
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbx + rbx*2]
mov byte [rax + rcx*8], 0x4b
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r14
mov byte [rax + rcx*8 + 1], 0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x498b07
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov edx, dword [rdi + 0x3c]
mov eax, dword [rsp + 0x80]
cmp edx, eax
jbe 0x498b21
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov rsi, qword [rsp + 0xf0]
mov ebp, dword [rsp + 0x48]
mov rbx, qword [rsp + 0xf8]
dec ecx
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x100]
jmp 0x498b6c
mov rsi, qword [rsp + 0xf0]
mov r13d, dword [rsp + 0x40]
mov ebp, dword [rsp + 0x48]
mov rbx, qword [rsp + 0xf8]
mov rax, qword [rsp + 0x100]
mov r12, qword [r12 + 0x28]
mov r14d, dword [rsp + 0x44]
test r12, r12
mov qword [rsp + 0x88], r12
jne 0x4980d1
cmp qword [rsp + 0x100], 0
jne 0x498c7d
cmp byte [rsp + 0x54], 0
je 0x498c7d
mov ebx, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x6c]
mov edx, reloc.WLDAP32.dll_Ordinal_50
mov r9d, ebx
mov rcx, rdi
call fcn.00441dd0
mov r8d, ebx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.00441d40
mov r9d, dword [rsp + 0x84]
xor r8d, r8d
lea edx, [r8 + 0x1c]
mov rcx, rdi
mov ebx, eax
call fcn.00441dd0
mov r8d, dword [rsp + 0x64]
mov r9d, 3
lea rax, [0x006a27d4]
mov dword [rsp + 0x30], 0
lea edx, [r9 + 0x2e]
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov dword [rsp + 0x20], r13d
call fcn.0044f620
mov ebp, dword [rsp + 0x5c]
mov esi, dword [rsp + 0x108]
mov r9d, ebp
mov r8d, esi
mov edx, 0x4a
mov rcx, rdi
call fcn.00441dd0
mov r9d, r13d
mov r8d, esi
mov edx, Ordinal_79
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.00441bf0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x498c5e
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x498c71
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov rbp, qword [rsp + 0xd8]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xe8
ret