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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rsi, r9
mov r13, r8
mov rbx, rdx
mov rax, qword [r8]
mov rcx, r8
call qword [rax + 0xb0]
movzx ebp, al
mov dword [rsp + 0x24], ebp
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x2c], r14d
xor r15b, r15b
mov byte [rsp + 0x20], r15b
mov r8d, dword [rsi + 0xc]
mov dword [rsp + 0x34], r8d
cmp r8d, dword [rsi + 0x14]
jge 0x14005a7de
lea r10, vtable.Rect.0
lea r12, vtable.Dimension.0
mov edx, dword [rsi + 8]
mov dword [rsp + 0x30], edx
mov ecx, dword [rsi + 0x10]
cmp edx, ecx
jge 0x14005a62f
lea r9d, [r8 + 0x10]
lea edi, [rdx + 0x10]
mov dword [rsp + 0x3c], edi
nop
mov eax, dword [rsi + 0x14]
cmp r9d, eax
cmovl eax, r9d
cmp edi, ecx
cmovl ecx, edi
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], eax
mov rax, qword [r13]
lea rdx, [rsp + 0xb0]
mov rcx, r13
call qword [rax + 0x80]
lea rdx, [rsp + 0x98]
mov rcx, rax
call fcn.14000d790
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.14000d6c0
mov ecx, dword [rax + 8]
cmp dword [rsp + 0x48], ecx
jne 0x14005a2ea
mov ecx, dword [rax + 0xc]
cmp dword [rsp + 0x4c], ecx
jne 0x14005a2ea
mov ecx, dword [rax + 0x10]
cmp dword [rsp + 0x50], ecx
jne 0x14005a2ea
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x54], eax
jne 0x14005a2ea
mov eax, 1
jmp 0x14005a2ed
mov eax, r14d
test al, al
sete al
mov qword [rsp + 0xb0], r12
test al, al
jne 0x14005a6de
mov rdi, r14
mov esi, 1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x28]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, 1
jb 0x14005a310
movzx r12d, byte [rsp + 0x28]
test r12b, 1
je 0x14005a3b7
mov r12d, dword [rsp + 0x4c]
cmp r12d, dword [rsp + 0x54]
jge 0x14005a5e9
nop word [rax + rax]
mov eax, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
sub eax, edx
imul eax, ebp
movsxd rbp, eax
mov rax, qword [r13]
mov r8d, r12d
mov rcx, r13
call qword [rax + 0xc8]
mov r13, rax
mov rdi, r14
mov rsi, rbp
test rbp, rbp
je 0x14005a39c
nop
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rdi + r13]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, rbp
jb 0x14005a380
inc r12d
cmp r12d, dword [rsp + 0x54]
mov ebp, dword [rsp + 0x24]
mov r13, qword [rsp + 0x140]
jl 0x14005a350
jmp 0x14005a5e9
test r12b, 2
je 0x14005a3fb
movsxd rbp, ebp
mov rdi, r14
mov rsi, rbp
test rbp, rbp
je 0x14005a3ed
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x38]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, rbp
jb 0x14005a3d0
mov r15b, 1
mov byte [rsp + 0x20], r15b
mov ebp, dword [rsp + 0x24]
jmp 0x14005a400
test r15b, r15b
je 0x14005a414
mov rax, qword [r13]
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [rax + 0x20]
movzx r13d, r12b
and r13b, 4
je 0x14005a44d
movsxd rbp, ebp
mov rdi, r14
mov rsi, rbp
test rbp, rbp
je 0x14005a44d
nop dword [rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x2c]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, rbp
jb 0x14005a430
test r12b, 8
je 0x14005a5ca
mov rdi, r14
mov esi, 1
nop
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x23]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, 1
jb 0x14005a460
movzx eax, byte [rsp + 0x23]
test eax, eax
jle 0x14005a5dd
and r12b, 0x10
mov r15, rax
test r12b, r12b
je 0x14005a4cd
test r13b, r13b
jne 0x14005a4cd
movsxd rbp, dword [rsp + 0x24]
mov rdi, r14
mov rsi, rbp
test rbp, rbp
je 0x14005a4cd
nop dword [rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x2c]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, rbp
jb 0x14005a4b0
mov rdi, r14
mov esi, 1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x21]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, 1
jb 0x14005a4e0
mov rdi, r14
mov esi, 1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + rdi + 0x22]
mov r8, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
sub rsi, rax
add rdi, rax
cmp rdi, 1
jb 0x14005a510
movzx r9d, byte [rsp + 0x21]
mov r8d, r9d
shr r8d, 4
and r9d, 0xf
movzx ecx, byte [rsp + 0x22]
mov eax, ecx
shr eax, 4
and ecx, 0xf
lea edi, [rcx + 1]
lea rdx, vtable.Rect.0
mov qword [rsp + 0x98], rdx
lea edx, [rax + r8 + 1]
add edi, r9d
mov ecx, dword [rsp + 0x48]
lea eax, [r8 + rcx]
mov dword [rsp + 0xa0], eax
add edx, ecx
mov dword [rsp + 0xa8], edx
mov ecx, dword [rsp + 0x4c]
lea eax, [r9 + rcx]
mov dword [rsp + 0xa4], eax
add edi, ecx
mov dword [rsp + 0xac], edi
mov rcx, qword [rsp + 0x140]
mov rax, qword [rcx]
mov r8d, dword [rsp + 0x2c]
lea rdx, [rsp + 0x98]
call qword [rax + 0x20]
nop
sub r15, 1
jne 0x14005a492
mov ebp, dword [rsp + 0x24]
mov r13, qword [rsp + 0x140]
jmp 0x14005a5e9
test r15b, r15b
je 0x14005a647
mov ebp, dword [rsp + 0x24]
mov r13, qword [rsp + 0x140]
jmp 0x14005a5e9
mov ebp, dword [rsp + 0x24]
mov r13, qword [rsp + 0x140]
mov edx, dword [rsp + 0x30]
add edx, 0x10
mov dword [rsp + 0x30], edx
mov edi, dword [rsp + 0x3c]
add edi, 0x10
mov dword [rsp + 0x3c], edi
mov rsi, qword [rsp + 0x148]
mov ecx, dword [rsi + 0x10]
cmp edx, ecx
movzx r15d, byte [rsp + 0x20]
mov r8d, dword [rsp + 0x34]
lea r9d, [r8 + 0x10]
lea r10, vtable.Rect.0
lea r12, vtable.Dimension.0
jl 0x14005a260
add r8d, 0x10
mov dword [rsp + 0x34], r8d
cmp r8d, dword [rsi + 0x14]
jge 0x14005a7de
jmp 0x14005a242
lea rax, vtable.Exception.0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x140], rax
lea rax, vtable.StringStorage.0
mov qword [rsp + 0x60], rax
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x14005a685
lea rcx, [rsp + 0x68]
mov qword [rax], rcx
jmp 0x14005a688
mov rax, r14
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x60]
call fcn.14002e2d0
nop
lea rdx, str.Server_error_in_HexTile_encoding:_background_color_not_accepted
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x58]
call fcn.14007c4b0
int3
lea rax, vtable.Exception.0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x140], rax
lea rax, vtable.StringStorage.0
mov qword [rsp + 0x60], rax
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x14005a71c
lea rcx, [rsp + 0x68]
mov qword [rax], rcx
jmp 0x14005a71f
mov rax, r14
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x88]
mov rdi, rdx
mov rbx, qword [rsp + 0x80]
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rbx, rdx
jbe 0x14005a785
call fcn.1400796a8
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x14005a796
call fcn.1400796a8
jmp 0x14005a799
mov r14, qword [rax]
cmp rbx, qword [r14 + 0x20]
jb 0x14005a7a4
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbx
call fcn.14007ad70
nop
lea rdx, str.Error_in_protocol:_incorrect_size_of_tile_in_hextile_decoder
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x58]
call fcn.14007c4b0
nop
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret