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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x178
mov r8, qword [rsp + 0x198]
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.1801202e0
jmp 0x1801223d7
lea rax, [rsp + 0x50]
mov rcx, rax
call fcn.1801214b0
mov dword [rsp + 0x60], eax
call fcn.180015730
mov qword [rsp + 0x130], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x148], eax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x148]
mov rdi, qword [rsp + 0x198]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x198]
mov eax, dword [rax]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1801223f6
mov dword [rsp + 0x2c], 1
jmp 0x1801223fe
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x18012252c
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x198]
mov rax, qword [rax + 8]
mov qword [rsp + 0xb0], rax
call fcn.180015730
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0xc8], rax
jne 0x180122480
mov dword [rsp + 0x30], 1
jmp 0x180122488
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x18012249b
mov dword [rsp + 0x34], 1
jmp 0x1801224a3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x1801224f5
mov rax, qword [rsp + 0x198]
mov eax, dword [rax]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 2
je 0x1801224e0
cmp dword [rsp + 0x24], 3
je 0x1801224e0
cmp dword [rsp + 0x24], 0x35
je 0x1801224e0
cmp dword [rsp + 0x24], 0x7b
je 0x1801224e0
jmp 0x1801224e7
mov byte [rsp + 0x20], 1
jmp 0x1801224ec
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x180122527
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 8], 0
je 0x180122522
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 8]
call fcn.1800525f0
jmp 0x180122874
jmp 0x180122789
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x18012254e
mov dword [rsp + 0x38], 1
jmp 0x180122556
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x180122569
mov dword [rsp + 0x3c], 1
jmp 0x180122571
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
test eax, eax
je 0x18012257f
jmp 0x180122789
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
add rax, 0x20
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov r8d, 6
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0xe8]
call fcn.180121650
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x70], eax
call fcn.180015730
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x158], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x158]
mov rdi, qword [rsp + 0x198]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x198]
mov eax, dword [rax]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
je 0x180122654
mov dword [rsp + 0x40], 1
jmp 0x18012265c
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x180122697
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x180122692
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call fcn.1800525f0
jmp 0x180122874
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 3
jne 0x1801226c8
mov r8, qword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x98]
call fcn.180122350
jmp 0x18012271c
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x98]
call fcn.180129670
movzx eax, al
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1a0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x198]
mov eax, dword [rax]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x180122741
mov dword [rsp + 0x44], 1
jmp 0x180122749
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x180122784
lea rax, [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 8], 0
je 0x18012277f
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 8]
call fcn.1800525f0
jmp 0x180122874
jmp 0x180122384
lea rax, [rsp + 0x50]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 8], 0
je 0x1801227b6
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 8]
call fcn.1800525f0
mov dword [rsp + 0x28], 0
jmp 0x1801227ca
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jge 0x180122874
mov rax, qword [rsp + 0x190]
mov rcx, rax
call fcn.180008bc0
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.1801a4c3c
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x48]
mov rcx, qword [rsp + 0x1a0]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x1a0]
mov qword [rcx], rax
call fcn.180015730
mov qword [rsp + 0x118], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x138], eax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x138]
mov rdi, qword [rsp + 0x198]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x4c], 0x91
je 0x18012286f
cmp dword [rsp + 0x4c], 5
je 0x18012286f
jmp 0x180122874
jmp 0x1801227c0
add rsp, 0x178
pop rdi
pop rsi
ret