Function at 0x180016790
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x1800c17f8]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov r15d, dword [rbp + 0xd0]
mov rbx, r8
mov r12, qword [rbp + 0xc8]
xor r8d, r8d
mov rdi, rdx
mov qword [rsp + 0x78], rbx
mov rsi, r9
mov qword [rsp + 0x68], rcx
lea edx, [r15 + 0x620]
mov r14d, r15d
mov dword [rsp + 0x70], edx
lea r10d, [r8 + 0x6c]
cmp r15d, edx
jae 0x180016d5d
mov r13, qword [rbp + 0xc0]
mov r15d, dword [rsp + 0x74]
mov r9d, 0x65
movabs rcx, 0x65006c00730073
cmp r14d, 0x150
ja 0x180016bbe
je 0x180016bb4
cmp r14d, 0xcc
ja 0x180016ae7
je 0x180016adb
mov eax, r14d
sub eax, 8
je 0x180016870
sub eax, 0x62
je 0x180016a44
cmp eax, 0x22
jne 0x180016cfe
mov eax, dword [0x1800b970e]
mov dword [rbp - 0x50], eax
movzx eax, word [0x1800b9712]
mov word [rbp - 0x4c], ax
mov word [rbp - 0x4a], r8w
jmp 0x180016cfe
cmp byte [rsi + 0xb8d], 0
jne 0x1800168a3
mov dword [rsp + 0x30], 0x115
mov r9, rsi
mov qword [rsp + 0x28], r8
mov rdx, rdi
mov qword [rsp + 0x20], r8
xor ecx, ecx
xor r8d, r8d
call fcn.180016790
test al, al
je 0x180016d14
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x4c]
call fcn.18000ed10
mov r14, qword [rsp + 0x78]
mov r15d, eax
nop word [rax + rax]
mov ebx, 0x100
nop word [rax + rax]
mov eax, ebx
sub eax, 0xff
je 0x1800169da
cmp eax, 1
jne 0x180016a2a
mov rax, qword [r14]
mov r9, r12
mov rdx, qword [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0x37
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18002aac0
test al, al
jne 0x180016d14
mov ecx, dword [r13]
cmp ecx, 0xffffffff
je 0x180016973
mov eax, dword [rdi + 0x18]
sub eax, dword [rdi + 0x1c]
cmp eax, ecx
jae 0x180016a3d
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rdx, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0x31
call fcn.180007770
mov rdx, qword [r12]
add rdx, rax
cmp rdx, 0xefff
jae 0x180016a3d
mov eax, dword [rdi + 0x20]
cmp dword [rdi + 0x18], eax
jb 0x18001698f
cmp dword [rdi + 0x68], 0
je 0x180016d14
cmp dword [rdi + 0x1c], 0
je 0x180016a3d
cmp byte [rsi + 0xb8c], 0
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x70]
je 0x1800169b8
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8d, 0x12
mov rcx, rsi
call fcn.1800239a0
jmp 0x180016a2a
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x68]
mov r9d, 0xc1
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov dword [rbp - 0x68], r15d
call fcn.180016150
jmp 0x180016a2a
mov eax, dword [rbp - 0x80]
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x60]
mov eax, dword [rbp - 0x70]
xor r9d, r9d
mov dword [rbp - 0x60], eax
xor r8d, r8d
lea rax, [rbp - 0x68]
mov dword [rbp - 0x68], r15d
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x40], 0x71
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180014830
add r15d, dword [rbp - 0x80]
dec ebx
cmp ebx, 0xfe
ja 0x1800168d0
jmp 0x1800168c0
mov edx, dword [rsp + 0x70]
mov rbx, r14
cmp byte [rsi + 0xb8e], 0
mov r14d, 0x6a
jne 0x180016cfe
mov byte [rsi + 0xb8e], 1
cmp dword [r13], 0xffffffff
jne 0x180016a80
mov r9d, 0xf1
mov dword [rsp + 0x60], r15d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180030d20
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rsi
lea ecx, [r9 + 0x21]
call fcn.18000cdd0
mov rax, qword [rbx]
mov r9, r12
mov rdx, qword [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0x37
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18002aac0
test al, al
jne 0x180016d14
mov edx, dword [rsp + 0x70]
jmp 0x180016cfe
mov byte [rsi + 0xb8e], 0
jmp 0x180016cfe
mov eax, r14d
sub eax, 0xee
je 0x180016b96
sub eax, 0x2b
je 0x180016b0d
cmp eax, 0x15
jne 0x180016cfe
mov eax, 1
jmp 0x1800171ce
mov dword [rsp + 0x28], 0xb8
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor edx, edx
xor r8d, r8d
mov rcx, rsi
call fcn.1800267b0
test eax, eax
jne 0x1800171ce
mov rdx, qword [rsi + 0x38]
lea rax, [0x1800171f0]
mov rcx, qword [rsi + 0x30]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov r9, rdi
lea rax, [rsp + 0x60]
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x4b
call fcn.180034a40
mov rbx, rax
test eax, eax
jne 0x180016d1b
mov rax, qword [rsi + 0x38]
mov edx, dword [rsp + 0x70]
mov byte [rax + 0x58], 1
mov rax, qword [rsi + 0x38]
mov byte [rax + 0x59], 1
mov rax, qword [rsi + 0x38]
mov byte [rax + 0x5b], 1
jmp 0x180016cfe
mov eax, dword [0x1800b9746]
mov dword [rbp - 0x48], eax
movzx eax, word [0x1800b974a]
mov word [rbp - 0x44], ax
mov word [rbp - 0x4a], r9w
jmp 0x180016cfe
mov word [rbp - 0x42], r8w
jmp 0x180016cfe
cmp r14d, 0x1d9
ja 0x180016cd8
je 0x180016ccf
mov eax, r14d
sub eax, 0x177
je 0x180016c06
sub eax, 4
je 0x180016bfc
cmp eax, 0x37
jne 0x180016cfe
mov dword [rbp - 0x42], 0x2e0032
mov dword [rbp - 0x3e], 0x6c0064
jmp 0x180016cfe
mov dword [rsp + 0x58], r8d
jmp 0x180016cfe
mov eax, dword [rdi + 0x20]
cmp dword [rdi + 0x18], eax
jne 0x180016c1d
cmp dword [rdi + 0x68], 0
je 0x1800171c5
jmp 0x180016cfe
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 1
mov r9d, 0x118
mov qword [rsp + 0x20], rax
mov r8, rdi
xor edx, edx
xor ecx, ecx
call fcn.18002b240
xor ebx, ebx
lea rax, [rsi + 0x6b9c]
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x39
mov dword [rdi + 0x1c], ebx
mov dword [rsp + 0x60], ebx
call fcn.180005d20
mov rax, qword [rdi]
lea rdx, [rbp - 0x78]
xor r9d, r9d
mov r8d, 0x117
movzx ecx, byte [rax]
lea rax, [rsi + 0xb9c]
mov dword [rsp + 0x60], ecx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov dword [rbp - 0x78], 8
call fcn.180025be0
mov edx, dword [rsp + 0x70]
jmp 0x180016cfe
mov byte [rsi + 0xb8d], 1
jmp 0x180016cfe
mov eax, r14d
sub eax, 0x214
je 0x180016cf7
sub eax, 0x27
je 0x180016d41
cmp eax, 0x3b
jne 0x180016cfe
mov qword [rbp - 0x30], rcx
mov word [rbp - 0x28], r8w
jmp 0x180016cfe
mov dword [rbp - 0x3a], 0x6c
add r14d, 0x62
xor r8d, r8d
cmp r14d, edx
jae 0x180016d4b
mov rbx, qword [rsp + 0x78]
jmp 0x180016802
xor eax, eax
jmp 0x1800171ce
xor eax, eax
mov dword [rsp + 0x28], 0x8a
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.18004b3f0
mov eax, ebx
jmp 0x1800171ce
mov byte [rsp + 0x58], 1
jmp 0x1800171ca
mov rcx, qword [rsp + 0x68]
mov r10d, 0x6c
mov r15d, dword [rbp + 0xd0]
imul eax, r15d, 0xab9
mov r14d, r15d
mov dword [rbp - 0x78], eax
cmp r15d, eax
ja 0x1800171ca
mov r13, qword [rbp - 0x58]
mov ebx, dword [rsp + 0x74]
movzx r12d, byte [rsp + 0x50]
mov r15d, dword [rsp + 0x74]
nop word [rax + rax]
cmp r14d, 0x25904
ja 0x180016f0c
je 0x180016ec7
cmp r14d, 0xc8b4
ja 0x180016e28
je 0x180016dff
cmp r14d, 0x8c
je 0x180016ddb
cmp r14d, 0x119
je 0x1800171ca
cmp r14d, 0x64a0
jne 0x180017190
mov word [rbp - 0x1a], r8w
jmp 0x180017190
movsd xmm0, qword [0x1800b98a4]
movzx eax, word [0x1800b98ac]
movsd qword [rbp - 0x28], xmm0
mov word [rbp - 0x20], ax
mov dword [rbp - 0x1e], 0x6c0064
jmp 0x180017190
mov r8d, 1
lea rdx, [0x1800b97f0]
lea rcx, [rbp - 0x1a]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov word [rbp - 0x18], r8w
jmp 0x18001718a
cmp r14d, 0x12cc8
je 0x180016e82
cmp r14d, 0x190dc
je 0x180016e53
cmp r14d, 0x1f4f0
jne 0x180017190
mov dword [rbp - 8], 0x61
jmp 0x180017190
mov r8d, 3
mov dword [rbp + 0x3e], r10d
lea rdx, [0x1800b9848]
mov dword [rbp - 0x10], 0x73
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
jmp 0x18001718a
mov r8d, 0xa
lea rdx, str.ssleay32.
lea rcx, [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 2
lea rdx, [0x1800b6dd0]
lea rcx, [rbp + 0x3a]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rcx, qword [rsp + 0x68]
mov r10d, 0x6c
mov dword [rbp + 0x3c], r10d
xor r8d, r8d
jmp 0x180017190
lea rcx, [rbp - 0x10]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180016ed0
mov eax, dword [0x1800b98b4]
mov dword [rcx], eax
movzx eax, word [0x1800b98b8]
mov word [rcx + 4], ax
mov eax, dword [0x1800b6dc8]
mov rcx, qword [rsp + 0x68]
mov dword [rbp - 2], eax
movzx eax, word [0x1800b6dcc]
mov word [rbp + 2], ax
jmp 0x180017190
cmp r14d, 0x3e954
ja 0x1800170d3
je 0x18001706e
cmp r14d, 0x2bd18
je 0x18001700b
cmp r14d, 0x3212c
je 0x180016f7a
cmp r14d, 0x38540
jne 0x180017190
mov dword [rsp + 0x74], r8d
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x28], 0xc2
mov r9d, 0x6f
mov qword [rsp + 0x20], r8
xor edx, edx
xor r8d, r8d
call fcn.1800267b0
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x60], rax
jmp 0x18001718a
movzx eax, word [0x1800b9820]
lea rcx, [rbp - 0x30]
movups xmm0, xmmword [str.697_662_DOWN_BOX]
mov word [rbp + 0x20], ax
mov r9d, 0x57
movzx eax, byte [0x1800b9822]
xor edx, edx
mov dword [rsp + 0x28], 0xc2
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov byte [rbp + 0x22], al
movups xmmword [rbp + 0x10], xmm0
call fcn.1800267b0
mov qword [rbp - 0x60], rax
mov r15, 0xffffffffffffffff
lea rax, [rbp + 0x10]
nop word [rax + rax]
inc r15
cmp byte [rax + r15], 0
jne 0x180016fd0
xor eax, eax
mov dword [rsp + 0x28], 0xc2
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rbp + 0x28]
lea r9d, [rax + 0x4b]
call fcn.1800267b0
mov rcx, qword [rsp + 0x68]
mov r13, rax
xor r8d, r8d
jmp 0x18001718a
mov r8d, 1
lea rdx, [0x1800b6dd0]
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov r8d, 3
lea rdx, [0x1800b7004]
lea rcx, [rbp + 4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov dword [rsp + 0x28], 0xc2
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rbp - 0x50]
mov r12b, 1
lea r9d, [rax + 0x2b]
call fcn.1800267b0
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov qword [rbp - 0x68], rax
jmp 0x18001718a
mov qword [rbp - 0x58], r8
lea rcx, str.ssleay32.dll
mov dword [rsp + 0x28], 0xc2
mov r9d, 0xc
mov qword [rsp + 0x20], r8
xor edx, edx
xor r8d, r8d
call fcn.1800267b0
mov rbx, rax
xor ecx, ecx
mov rax, qword [rsp + 0x68]
mov qword [rax], rcx
call qword [rsp + 0x60]
mov rcx, rax
call rbx
lea r9, [rbp - 0x58]
mov qword [rdi], rax
lea r8, [rsp + 0x74]
mov edx, r15d
lea rcx, [rbp + 0x10]
call sub.RPCRT4.dll_MesEncodeFixedBufferHandleCreate
mov rcx, qword [rsp + 0x68]
mov ebx, eax
xor r8d, r8d
jmp 0x18001718a
cmp r14d, 0x44d68
je 0x180017162
cmp r14d, 0x4b17c
je 0x1800170fb
cmp r14d, 0x51590
je 0x1800171ca
jmp 0x180017190
mov edx, dword [rsi]
mov rcx, qword [rcx]
call qword [rbp - 0x60]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [rbp - 0x68]
cmp eax, 1
jne 0x1800171a9
test r12b, r12b
je 0x180017153
xor eax, eax
lea r8, [rsp + 0x78]
mov edx, r15d
mov qword [rsp + 0x78], rax
lea rcx, [rbp + 0x10]
call sub.RPCRT4.dll_MesDecodeBufferHandleCreate
mov rcx, qword [rbp - 0x58]
mov ebx, eax
test rcx, rcx
je 0x180017144
call sub.RPCRT4.dll_MesHandleFree
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180017153
call sub.RPCRT4.dll_MesHandleFree
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov byte [rsp + 0x58], 1
jmp 0x18001718a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800171c5
call r13
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
test rax, rax
je 0x1800171ae
test ebx, ebx
movzx r12d, r12b
mov r8d, 0
cmovne r12d, r8d
mov r10d, 0x6c
imul eax, dword [rbp + 0xd0], 0xb7
add r14d, eax
cmp r14d, dword [rbp - 0x78]
jbe 0x180016d90
jmp 0x1800171ca
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
call fcn.18002a790
mov byte [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.18004d0f0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret