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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov rax, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x288]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x280]
mov ecx, dword [rsp + 0x290]
mov dword [rax + 0x10], ecx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.140016f80
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0xa0]
lea rdi, [rax + 0x38]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r8, str.cmap
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov dword [rsp + 0x20], eax
lea r8, str.loca
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x18], eax
lea r8, [0x14014a924]
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x1c], eax
lea r8, str.glyf
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x20], eax
lea r8, str.hhea
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x24], eax
lea r8, str.hmtx
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x28], eax
lea r8, str.kern
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x2c], eax
cmp dword [rsp + 0x20], 0
je 0x140018099
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0x1c], 0
je 0x140018099
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0x24], 0
je 0x140018099
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0x28], 0
jne 0x1400180a0
xor eax, eax
jmp 0x1400187bd
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0x20], 0
je 0x1400180c8
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0x18], 0
jne 0x1400180c3
xor eax, eax
jmp 0x1400187bd
jmp 0x1400185f5
mov dword [rsp + 0x240], 2
mov dword [rsp + 0x23c], 0
mov dword [rsp + 0x238], 0
mov dword [rsp + 0x220], 0
lea r8, str.CFF
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140018121
xor eax, eax
jmp 0x1400187bd
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x140]
call fcn.140016f80
lea rcx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0xb0]
lea rdi, [rax + 0x78]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.140016f80
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0xc0]
lea rdi, [rax + 0x88]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
mov r8d, 0x20000000
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.140016f80
lea rcx, [rsp + 0xd0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0xd0]
lea rdi, [rax + 0x38]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x228]
mov rcx, qword [rsp + 0x280]
mov rdi, rax
lea rsi, [rcx + 0x38]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov edx, 2
lea rcx, [rsp + 0x228]
call fcn.140016ec0
lea rcx, [rsp + 0x228]
call fcn.140016da0
movzx eax, al
mov edx, eax
lea rcx, [rsp + 0x228]
call fcn.140016e40
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x170]
call fcn.140017090
lea rcx, [rsp + 0x180]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x190]
call fcn.140017090
lea rcx, [rsp + 0xe0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0xe0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0xf0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x1a0]
call fcn.140017560
lea rcx, [rsp + 0x110]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x248]
lea rcx, [rsp + 0x110]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x1b0]
call fcn.140017090
lea rcx, [rsp + 0x1c0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x1d0]
call fcn.140017090
lea rcx, [rsp + 0x120]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0x120]
lea rdi, [rax + 0x58]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x23c]
mov r8d, 1
mov edx, reloc.WS2_32.dll_recvfrom
lea rcx, [rsp + 0x248]
call fcn.140017480
lea r9, [rsp + 0x240]
mov r8d, 1
mov edx, 0x106
lea rcx, [rsp + 0x248]
call fcn.140017480
lea r9, [rsp + 0x238]
mov r8d, 1
mov edx, 0x124
lea rcx, [rsp + 0x248]
call fcn.140017480
lea r9, [rsp + 0x220]
mov r8d, 1
mov edx, 0x125
lea rcx, [rsp + 0x248]
call fcn.140017480
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x248]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x228]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1e0]
call fcn.140017cf0
lea rcx, [rsp + 0x60]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0x60]
lea rdi, [rax + 0x68]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x240], 2
je 0x1400184ab
xor eax, eax
jmp 0x1400187bd
cmp dword [rsp + 0x23c], 0
jne 0x1400184bc
xor eax, eax
jmp 0x1400187bd
cmp dword [rsp + 0x238], 0
je 0x140018599
cmp dword [rsp + 0x220], 0
jne 0x1400184db
xor eax, eax
jmp 0x1400187bd
mov edx, dword [rsp + 0x238]
lea rcx, [rsp + 0x228]
call fcn.140016e40
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x1f0]
call fcn.140017090
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0x70]
lea rdi, [rax + 0x78]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x220]
mov ecx, dword [rsp + 0x234]
sub ecx, eax
mov eax, ecx
mov r9d, eax
mov r8d, dword [rsp + 0x220]
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x200]
call fcn.140016ff0
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0x80]
lea rdi, [rax + 0x88]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov edx, dword [rsp + 0x23c]
lea rcx, [rsp + 0x228]
call fcn.140016e40
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x210]
call fcn.140017090
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x280]
lea rcx, [rsp + 0x90]
lea rdi, [rax + 0x48]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r8, str.maxp
mov edx, dword [rsp + 0x290]
mov rcx, qword [rsp + 0x288]
call fcn.140017a20
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140018644
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x288]
lea rax, [rcx + rax + 4]
mov rcx, rax
call fcn.140017690
movzx eax, ax
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x14], eax
jmp 0x140018653
mov rax, qword [rsp + 0x280]
mov dword [rax + 0x14], 0xffff
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x288]
lea rax, [rcx + rax + 2]
mov rcx, rax
call fcn.140017690
movzx eax, ax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x280]
mov dword [rax + 0x30], 0
mov dword [rsp + 0x24], 0
jmp 0x140018696
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x24], eax
jge 0x140018777
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
lea eax, [rax + rcx*8 + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x288]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140017690
movzx eax, ax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140018746
cmp dword [rsp + 0x30], 3
je 0x1400186e8
jmp 0x140018772
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x288]
lea rax, [rcx + rax + 2]
mov rcx, rax
call fcn.140017690
movzx eax, ax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 1
je 0x140018718
cmp dword [rsp + 0x34], 0xa
je 0x140018718
jmp 0x140018744
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x288]
lea rax, [rcx + rax + 4]
mov rcx, rax
call fcn.1400176d0
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x30], eax
jmp 0x140018772
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x288]
lea rax, [rcx + rax + 4]
mov rcx, rax
call fcn.1400176d0
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x30], eax
jmp 0x14001868c
mov rax, qword [rsp + 0x280]
cmp dword [rax + 0x30], 0
jne 0x140018789
xor eax, eax
jmp 0x1400187bd
mov rax, qword [rsp + 0x280]
movsxd rax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x288]
lea rax, [rcx + rax + 0x32]
mov rcx, rax
call fcn.140017690
movzx eax, ax
mov rcx, qword [rsp + 0x280]
mov dword [rcx + 0x34], eax
mov eax, 1
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.14012fc50
add rsp, 0x268
pop rdi
pop rsi
ret