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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r13, qword [rcx]
xor edi, edi
mov r10, qword [rcx + 8]
mov r12, rcx
mov qword [rsp + 0x98], r13
mov r8d, edi
mov qword [rsp + 0x88], r10
mov r9, qword [r13]
mov rbx, qword [r13 + 0x10]
mov qword [rsp + 0x90], r9
cmp byte [r13 + 0x25], dil
jbe 0x1401216e0
lea rdx, [r13 + 0xd0]
nop
cmp byte [rdx - 6], dil
je 0x1401216cf
movzx eax, byte [r13 + 0x1f]
cmp al, 8
jae 0x1401216cf
mov ecx, eax
mov eax, dword [rdx]
mov dword [r13 + rcx*4 + 0x18c], eax
inc byte [r13 + 0x1f]
movzx eax, byte [r13 + 0x25]
inc r8d
add rdx, 0x14
cmp r8d, eax
jl 0x1401216b0
mov byte [r13 + 0x25], dil
movzx r15d, byte [r12 + 0x3a]
sub r15, 1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
js 0x140121c6e
mov r14, qword [rsp + 0x80]
lea r12, [r10 + 0x50]
imul rax, r15, 0x78
add r14, 0x3a4
add r12, rax
imul rax, r15, 0x58
add r14, rax
nop
mov rax, qword [rbx + 0x18]
mov rbp, qword [r14 + 0x34]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140121747
mov eax, dword [r14 + 4]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rax, qword [rbx + 0x18]
movzx edx, byte [r14 + 0x19]
cmp dl, 0xa2
je 0x1401217c8
movsxd rcx, dword [rbx + 0xb8]
movzx r10d, byte [r14 + 0x1a]
mov r9d, dword [r14 + 0x20]
mov r8d, dword [r14 + 0x1c]
cmp dword [rax + 0x3c], ecx
jg 0x140121779
mov rcx, rbx
mov dword [rsp + 0x20], r10d
call fcn.1400b9830
jmp 0x1401217ab
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], di
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], 0
movsxd rax, dword [rbx + 0xb8]
test eax, eax
jle 0x1401217c8
movzx edx, byte [r14 + 0x1b]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*8 - 0x16], dx
test dword [rbp + 0x28], 0x800
je 0x140121905
mov esi, dword [r14 + 0x24]
test esi, esi
jle 0x140121905
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140121804
mov eax, dword [r14 - 4]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov esi, dword [r14 + 0x24]
lea eax, [rsi - 1]
movsxd rcx, eax
mov rax, qword [r14 + 0x2c]
lea rdx, [rcx + rcx*2]
lea rdi, [rax + rdx*4]
test esi, esi
jle 0x140121903
xor r13d, r13d
mov rax, qword [rbx]
mov ecx, dword [rdi + 4]
mov edx, dword [rbx + 0xb8]
inc ecx
cmp byte [rax + 0x55], r13b
je 0x14012183e
lea rax, [0x14021dca8]
jmp 0x140121854
test ecx, ecx
lea eax, [rdx - 1]
cmovns eax, ecx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
movzx edx, byte [rdi + 8]
cmp dl, 0xa2
je 0x1401218b9
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov r9d, dword [rdi + 4]
mov r8d, dword [rdi]
cmp dword [rax + 0x3c], ecx
jg 0x140121886
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.1400b9830
jmp 0x1401218b9
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], r13w
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov byte [rax + rcx*8 + 1], r13b
mov ecx, dword [rdi + 4]
mov r8d, dword [rbx + 0xb8]
mov edx, r8d
lea eax, [rcx - 1]
test eax, eax
mov rax, qword [rbx]
cmovns edx, ecx
dec edx
cmp byte [rax + 0x55], r13b
je 0x1401218e2
lea rax, [0x14021dca8]
jmp 0x1401218f1
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
dec esi
mov dword [rax + 8], r8d
sub rdi, 0xc
test esi, esi
jg 0x140121821
xor edi, edi
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140121928
mov eax, dword [r14 - 8]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
mov rax, qword [rbx + 0x18]
mov edx, dword [r14]
test edx, edx
je 0x1401219eb
movsxd rcx, dword [rbx + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140121957
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0xd]
call fcn.1400b9830
jmp 0x14012197d
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], reloc.WSOCK32.dll_listen
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov rax, qword [rbx]
mov edx, dword [rbx + 0xb8]
mov ecx, dword [r14]
cmp byte [rax + 0x55], 0
je 0x140121998
lea rax, [0x14021dca8]
jmp 0x1401219ae
test ecx, ecx
lea eax, [rdx - 1]
cmovns eax, ecx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov eax, dword [r14]
mov edx, dword [rbx + 0xb8]
add eax, 0xfffffffe
lea ecx, [rdx - 1]
cmovns ecx, eax
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x1401219d5
lea rax, [0x14021dca8]
jmp 0x1401219e4
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]
mov r8d, dword [r14 + 0x14]
test r8d, r8d
je 0x140121a49
mov edx, dword [r14 + 0x10]
movsxd rcx, dword [rbx + 0xb8]
shr edx, 1
cmp dword [rax + 0x3c], ecx
jg 0x140121a1f
mov r9d, r8d
mov dword [rsp + 0x20], edi
mov r8d, edx
mov rcx, rbx
mov edx, 0x45
call fcn.1400b9830
jmp 0x140121a49
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x45
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov edx, dword [r14 - 0x14]
test edx, edx
je 0x140121c3c
mov rax, qword [rbx + 0x18]
xor r13d, r13d
movsxd rsi, dword [rbx + 0xb8]
mov edi, dword [rbp + 0x28]
cmp dword [rax + 0x3c], esi
jg 0x140121a86
mov r8d, edx
mov dword [rsp + 0x20], r13d
lea edx, [r13 + 0x43]
xor r9d, r9d
mov rcx, rbx
call fcn.1400b9830
mov esi, eax
jmp 0x140121aac
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x43
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], r13
mov qword [rax + rcx*8 + 0x10], r13
test dil, 0x40
jne 0x140121b09
mov rax, qword [rbx + 0x18]
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [r12]
cmp dword [rax + 0x3c], ecx
jg 0x140121adf
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x7c]
call fcn.1400b9830
jmp 0x140121b09
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x7c
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r13
bt edi, 9
jb 0x140121b1c
bt edi, 0xd
jae 0x140121b71
cmp qword [r14 + 0x24], 0
je 0x140121b71
mov rax, qword [rbx + 0x18]
xor edi, edi
movsxd rcx, dword [rbx + 0xb8]
mov edx, dword [r14 - 0xc]
cmp dword [rax + 0x3c], ecx
jg 0x140121b49
mov r8d, edx
mov dword [rsp + 0x20], edi
lea edx, [rdi + 0x7c]
xor r9d, r9d
mov rcx, rbx
call fcn.1400b9830
jmp 0x140121b73
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], 0x7c
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
jmp 0x140121b73
xor edi, edi
cmp byte [r14 + 0x19], 0x49
mov edx, dword [r14 + 8]
movsxd rcx, dword [rbx + 0xb8]
mov rax, qword [rbx + 0x18]
jne 0x140121bc7
mov r8d, dword [r14 + 0x1c]
cmp dword [rax + 0x3c], ecx
jg 0x140121ba8
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, reloc.WSOCK32.dll_ntohl
mov rcx, rbx
call fcn.1400b9830
jmp 0x140121c0a
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov dword [rax + rcx*8], reloc.WSOCK32.dll_ntohl
mov dword [rax + rcx*8 + 4], r8d
jmp 0x140121bfd
cmp dword [rax + 0x3c], ecx
jg 0x140121be4
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0xd]
call fcn.1400b9830
jmp 0x140121c0a
lea eax, [rcx + 1]
mov dword [rbx + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x68]
mov qword [rax + rcx*8], reloc.WSOCK32.dll_listen
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 0xc], edi
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0xb8]
test esi, esi
mov rax, qword [rbx]
lea ecx, [rdx - 1]
cmovns ecx, esi
cmp byte [rax + 0x55], 0
je 0x140121c2a
lea rax, [0x14021dca8]
jmp 0x140121c39
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
sub r14, 0x58
sub r12, 0x78
sub r15, 1
jns 0x140121720
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0x80]
mov r9, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140121c8e
mov eax, dword [r12 + 0x30]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0xb8]
mov dword [rdx + rcx*4], eax
cmp byte [r12 + 0x3a], 0
mov r14d, edi
jbe 0x140121ea6
lea r11, [r12 + 0x3d8]
mov r15d, 0xffffffff
nop dword [rax + rax]
movzx eax, byte [r11 - 0x1c]
mov rdx, qword [r11]
imul rcx, rax, 0x78
test byte [rcx + r10 + 0x48], 0x10
mov rbp, qword [rcx + r10 + 0x28]
je 0x140121d75
mov r8d, dword [r11 - 0x28]
mov r10d, dword [rcx + r10 + 0x40]
mov ecx, r8d
mov r9d, dword [r11 - 0x44]
mov rdx, qword [r13 + 0x10]
test r8d, r8d
jns 0x140121cee
mov ecx, dword [rdx + 0xb8]
dec ecx
mov rax, qword [rdx]
cmp byte [rax + 0x55], 0
je 0x140121d00
lea rcx, [0x14021dca8]
jmp 0x140121d0f
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x68]
lea rcx, [rax + rcx*8]
mov rax, qword [r13]
cmp byte [rax + 0x55], 0
jne 0x140121d68
mov eax, dword [rdx + 0xb8]
cmp r8d, eax
jge 0x140121d68
sub eax, r8d
lea rdx, [rcx + 4]
mov r8d, eax
nop
cmp dword [rdx], r9d
jne 0x140121d5e
movzx eax, byte [rdx - 4]
cmp al, 0x62
jne 0x140121d51
mov ecx, dword [rdx + 4]
mov eax, dword [rdx + 8]
add ecx, r10d
mov dword [rdx], ecx
mov byte [rdx - 4], 0x55
mov dword [rdx + 4], eax
jmp 0x140121d5b
cmp al, 0x7b
jne 0x140121d5e
mov byte [rdx - 4], 0x50
mov dword [rdx], edi
mov dword [rdx + 8], edi
add rdx, 0x18
sub r8, 1
jne 0x140121d30
mov r10, qword [rsp + 0x88]
jmp 0x140121e88
mov eax, dword [rdx + 0x28]
test eax, 0x240
je 0x140121d85
mov rdi, qword [rdx + 0x20]
jmp 0x140121d93
bt eax, 0xd
jae 0x140121e88
mov rdi, qword [r11 - 0x10]
test rdi, rdi
je 0x140121e86
cmp byte [r12 + 0x3d], 0
je 0x140121db2
mov rax, qword [rdi + 0x18]
test byte [rax + 0x40], 0x20
je 0x140121e86
cmp byte [r9 + 0x55], 0
jne 0x140121e86
mov rax, qword [rbx]
mov r8d, dword [rbx + 0xb8]
mov r9d, dword [r11 - 0x28]
cmp byte [rax + 0x55], 0
je 0x140121dda
lea rdx, [0x14021dca8]
jmp 0x140121df3
lea eax, [r8 - 1]
test r9d, r9d
cmovns eax, r9d
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
lea rdx, [rax + rcx*8]
cmp r9d, r8d
jge 0x140121e86
add rdx, 4
sub r8d, r9d
mov esi, r8d
mov eax, dword [r11 - 0x44]
cmp dword [rdx], eax
jne 0x140121e74
movzx eax, byte [rdx - 4]
cmp al, 0x62
jne 0x140121e66
test byte [rbp + 0x40], 0x20
movsxd r8, dword [rdx + 4]
je 0x140121e31
mov rcx, rbp
call fcn.1400df1b0
mov rax, qword [rax + 8]
movsx r8d, word [rax + r8*2]
movzx r9d, word [rdi + 0x60]
xor eax, eax
test r9d, r9d
je 0x140121e52
mov r10, qword [rdi + 8]
movsxd rcx, eax
cmp r8w, word [r10 + rcx*2]
je 0x140121e56
inc eax
cmp eax, r9d
jl 0x140121e41
movzx eax, r15w
movsx ecx, ax
test ecx, ecx
js 0x140121e74
mov dword [rdx + 4], ecx
mov eax, dword [r11 - 0x40]
jmp 0x140121e72
cmp al, 0x7b
jne 0x140121e74
mov eax, dword [r11 - 0x40]
mov byte [rdx - 4], 0x81
mov dword [rdx], eax
add rdx, 0x18
sub rsi, 1
jne 0x140121e06
mov r10, qword [rsp + 0x88]
xor edi, edi
movzx eax, byte [r12 + 0x3a]
inc r14d
mov r9, qword [rsp + 0x90]
add r11, 0x58
cmp r14d, eax
jl 0x140121cb0
mov eax, dword [r12 + 0x34]
mov rdx, r12
mov rcx, qword [rsp + 0x90]
mov dword [r13 + 0xb4], eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
jmp fcn.14011c680