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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rcx + 8], rdx
xor eax, eax
mov dword [rcx + 0x10], r8d
mov rbx, rdx
mov qword [rcx + 0x40], rax
mov r15d, r8d
mov qword [rcx + 0x48], rax
lea r8, str.cmap
mov rdi, rcx
mov edx, r15d
mov rcx, rbx
call fcn.1400590b8
mov edx, r15d
mov r12d, eax
mov rcx, rbx
lea r8, str.loca
call fcn.1400590b8
mov edx, r15d
mov dword [rdi + 0x18], eax
mov rcx, rbx
lea r8, str.head
mov r14d, eax
call fcn.1400590b8
mov edx, r15d
mov dword [rdi + 0x1c], eax
mov rcx, rbx
lea r8, str.glyf
mov esi, eax
call fcn.1400590b8
mov edx, r15d
mov dword [rbp + 0x48], eax
mov rcx, rbx
mov dword [rdi + 0x20], eax
lea r8, str.hhea
call fcn.1400590b8
mov edx, r15d
mov dword [rdi + 0x24], eax
mov rcx, rbx
lea r8, str.hmtx
mov r13d, eax
call fcn.1400590b8
mov edx, r15d
mov dword [rbp + 0x58], eax
mov rcx, rbx
mov dword [rdi + 0x28], eax
lea r8, [0x1401957d0]
call fcn.1400590b8
mov edx, r15d
mov dword [rdi + 0x2c], eax
mov rcx, rbx
lea r8, str.GPOS
call fcn.1400590b8
mov dword [rdi + 0x30], eax
test r12d, r12d
je 0x140059347
test esi, esi
je 0x140059347
test r13d, r13d
je 0x140059347
xor r13d, r13d
cmp dword [rbp + 0x58], r13d
je 0x140059347
lea esi, [r13 + 1]
cmp dword [rbp + 0x48], r13d
je 0x14005935a
test r14d, r14d
jne 0x140059593
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, str.CFF
mov dword [rbp + 0x58], 2
mov edx, r15d
mov dword [rbp + 0x48], r13d
mov rcx, rbx
mov dword [rbp + 0x50], r13d
mov dword [rbp + 0x60], r13d
call fcn.1400590b8
test eax, eax
je 0x140059347
mov qword [rdi + 0x80], r13
mov qword [rdi + 0x88], r13
mov qword [rdi + 0x90], r13
mov qword [rdi + 0x98], r13
mov eax, eax
add rax, rbx
mov qword [rdi + 0x40], rax
mov dword [rdi + 0x48], r13d
mov dword [rdi + 0x4c], 0x20000000
movups xmm2, xmmword [rdi + 0x40]
mov ecx, dword [rdi + 0x48]
mov rax, qword [rdi + 0x48]
add ecx, 2
movaps xmmword [rbp - 0x48], xmm2
shr rax, 0x20
psrldq xmm2, 0xc
movd edx, xmm2
cmp ecx, eax
jg 0x1400593da
test ecx, ecx
jns 0x1400593dc
mov ecx, edx
cmp ecx, edx
jl 0x1400593e5
mov al, r13b
jmp 0x1400593ef
mov rax, qword [rbp - 0x48]
movsxd rcx, ecx
mov al, byte [rcx + rax]
movzx eax, al
lea rcx, [rbp - 0x28]
cmp eax, edx
cmovle edx, eax
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x48]
call fcn.140058cd4
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140058cd4
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x28]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x38], xmm0
call fcn.140058fd8
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x38], xmm0
call fcn.140058cd4
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140058cd4
lea r9, [rbp + 0x48]
mov r8d, esi
mov edx, reloc.WS2_32.dll_recvfrom
lea rcx, [rbp - 0x38]
movups xmm0, xmmword [rax]
movdqu xmmword [rdi + 0x60], xmm0
call fcn.140058e5c
lea r9, [rbp + 0x58]
mov r8d, esi
mov edx, 0x106
lea rcx, [rbp - 0x38]
call fcn.140058e5c
lea r9, [rbp + 0x50]
mov r8d, esi
mov edx, 0x124
lea rcx, [rbp - 0x38]
call fcn.140058e5c
lea r9, [rbp + 0x60]
mov r8d, esi
mov edx, 0x125
lea rcx, [rbp - 0x38]
call fcn.140058e5c
movaps xmm1, xmmword [rbp - 0x38]
lea r8, [rbp - 0x38]
movaps xmm2, xmmword [rbp - 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
movdqa xmmword [rbp - 0x38], xmm1
movdqa xmmword [rbp - 0x28], xmm2
call fcn.140059164
cmp dword [rbp + 0x58], 2
movups xmm1, xmmword [rax]
movdqu xmmword [rdi + 0x70], xmm1
jne 0x140059347
mov r14d, dword [rbp + 0x48]
test r14d, r14d
je 0x140059347
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x14005956a
movsxd rsi, dword [rbp + 0x60]
test esi, esi
je 0x140059347
psrldq xmm2, 0xc
movd ecx, xmm2
cmp eax, ecx
jg 0x140059513
mov dword [rbp - 0x40], eax
test eax, eax
jns 0x140059516
mov dword [rbp - 0x40], ecx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.140058cd4
mov ecx, dword [rbp - 0x3c]
mov edx, ecx
sub edx, esi
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
movups xmm0, xmmword [rax]
movdqu xmmword [rdi + 0x80], xmm0
test esi, esi
js 0x140059557
test edx, edx
js 0x140059557
cmp esi, ecx
jg 0x140059557
mov rax, rsi
mov dword [rbp - 0x2c], edx
add rax, qword [rbp - 0x48]
mov qword [rbp - 0x38], rax
movups xmm0, xmmword [rbp - 0x38]
mov esi, 1
movdqu xmmword [rdi + 0x90], xmm0
jmp 0x14005956d
mov ecx, dword [rbp - 0x3c]
cmp r14d, ecx
jg 0x14005957b
mov dword [rbp - 0x40], r14d
test r14d, r14d
jns 0x14005957e
mov dword [rbp - 0x40], ecx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call fcn.140058cd4
movups xmm0, xmmword [rax]
movdqu xmmword [rdi + 0x50], xmm0
lea r8, [0x1401957f0]
mov edx, r15d
mov rcx, rbx
call fcn.1400590b8
test eax, eax
je 0x1400595bc
mov eax, eax
movzx ecx, byte [rax + rbx + 4]
movzx eax, byte [rax + rbx + 5]
shl ecx, 8
add ecx, eax
jmp 0x1400595c1
mov ecx, 0xffff
mov dword [rdi + 0x14], ecx
mov r9d, r13d
or dword [rdi + 0x34], 0xffffffff
movzx r10d, byte [r12 + rbx + 2]
movzx eax, byte [r12 + rbx + 3]
shl r10d, 8
mov dword [rdi + 0x38], r13d
add r10d, eax
je 0x140059655
lea eax, [r12 + 4]
lea eax, [rax + r9*8]
movzx edx, byte [rax + rbx]
mov r8d, eax
movzx eax, byte [rax + rbx + 1]
shl edx, 8
add edx, eax
je 0x140059620
cmp edx, 3
jne 0x14005964d
movzx ecx, byte [r8 + rbx + 2]
movzx eax, byte [r8 + rbx + 3]
shl ecx, 8
add ecx, eax
sub ecx, 1
je 0x140059620
cmp ecx, 9
jne 0x14005964d
movzx eax, byte [r8 + rbx + 4]
movzx edx, byte [r8 + rbx + 5]
movzx ecx, byte [r8 + rbx + 7]
shl eax, 8
add edx, eax
movzx eax, byte [r8 + rbx + 6]
shl edx, 8
add eax, edx
shl eax, 8
add eax, r12d
add ecx, eax
mov dword [rdi + 0x38], ecx
add r9d, esi
cmp r9d, r10d
jl 0x1400595e4
cmp dword [rdi + 0x38], r13d
je 0x140059347
movsxd rcx, dword [rdi + 0x1c]
mov eax, esi
movzx edx, byte [rcx + rbx + 0x32]
movzx ecx, byte [rcx + rbx + 0x33]
shl edx, 8
add edx, ecx
mov dword [rdi + 0x3c], edx
jmp 0x140059349