Function at 0x100160ef0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rcx
call fcn.10015c9d0
mov rdi, rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], 0x80
xor r15d, r15d
mov qword [rbp + 0x160], r15
mov rcx, qword [rbp + 0x160]
cmp qword [rbp + 0x158], rcx
jne 0x100160f7b
lea rcx, [rbp + 0x50]
call fcn.1000577e0
mov rcx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x150]
mov word [rax + rcx*2], r15w
inc qword [rbp + 0x160]
mov rcx, rdi
call fcn.10015c940
lea rcx, [rsi + 0x188]
mov rdx, rax
call fcn.1001527f0
mov rcx, rdi
call fcn.10015c980
mov rcx, qword [rax + 0x100]
or r13, 0xffffffffffffffff
mov rax, r13
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x100160fc0
mov r12d, 1
test rax, rax
je 0x100161051
mov rcx, rdi
call fcn.10015c980
mov rcx, qword [rax + 0x100]
call qword [sym.imp.MSVCR100.dll__wtoi]
cmp eax, r12d
cmovl eax, r12d
mov ebx, eax
shl rbx, 0xa
mov r14d, 0xffffffff
cmp rbx, r14
jbe 0x100161012
mov ebx, r14d
lea rcx, [0x100045280]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, ebx
shl rbx, 0xa
cmp rbx, r14
jbe 0x10016102d
mov ebx, r14d
lea rcx, [0x100045280]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 0x7fffffff
ja 0x10016103d
mov dword [rsi + 0x178], ebx
jmp 0x100161051
mov dword [rsi + 0x178], r13d
lea rcx, [0x100045280]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.10015c990
mov rcx, qword [rax + 0x100]
mov rax, r13
inc rax
cmp word [rcx + rax*2], 0
jne 0x100161063
test rax, rax
je 0x100161094
mov rcx, rdi
call fcn.10015c990
mov rcx, qword [rax + 0x100]
call qword [sym.imp.MSVCR100.dll__wtoi]
cmp eax, r12d
cmovl eax, r12d
mov dword [rsi + 0x17c], eax
mov rcx, rdi
call fcn.10015c960
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1001528b0
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1001527f0
nop
mov r14d, 0x200
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x100161118
lea rax, [rsp + 0x30]
cmp rdx, rax
je 0x100161118
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x1001610e6
cmp word [rax + 4], r14w
jne 0x1001610e6
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x100161104
cmp word [rcx + 4], r14w
jne 0x100161104
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x100161114
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x30], r15
mov rdx, qword [0x100242120]
lea rax, [rsp + 0x30]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x80
mov qword [rbp + 0x40], r15
lea rcx, [rsp + 0x30]
call fcn.100057700
nop
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x40]
dec rax
lea rdi, [rdx + rax*2]
mov rcx, qword [rbp + 0x150]
mov rax, qword [rbp + 0x160]
dec rax
lea rbx, [rcx + rax*2]
sub rbx, rcx
sar rbx, 1
sub rdi, rdx
sar rdi, 1
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
call qword [sym.imp.MSVCR100.dll_wcsncmp]
test eax, eax
jne 0x100161193
cmp rbx, rdi
jbe 0x10016118d
mov eax, r12d
jmp 0x100161191
cmovb eax, r13d
test eax, eax
sete bl
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x1001611f1
lea rax, [rsp + 0x30]
cmp rdx, rax
je 0x1001611f1
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x1001611bf
cmp word [rax + 4], r14w
jne 0x1001611bf
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x1001611dd
cmp word [rcx + 4], r14w
jne 0x1001611dd
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1001611ed
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x30], r15
test bl, bl
je 0x100161201
mov dword [rsi + 0x180], r12d
jmp 0x1001613d1
mov rdx, qword [0x100242128]
lea rax, [rsp + 0x30]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x80
mov qword [rbp + 0x40], r15
lea rcx, [rsp + 0x30]
call fcn.100057700
nop
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x40]
dec rax
lea rdi, [rdx + rax*2]
mov rcx, qword [rbp + 0x150]
mov rax, qword [rbp + 0x160]
dec rax
lea rbx, [rcx + rax*2]
sub rbx, rcx
sar rbx, 1
sub rdi, rdx
sar rdi, 1
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
call qword [sym.imp.MSVCR100.dll_wcsncmp]
test eax, eax
jne 0x10016127c
cmp rbx, rdi
jbe 0x100161276
mov eax, r12d
jmp 0x10016127a
cmovb eax, r13d
test eax, eax
sete bl
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x1001612da
lea rax, [rsp + 0x30]
cmp rdx, rax
je 0x1001612da
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x1001612a8
cmp word [rax + 4], r14w
jne 0x1001612a8
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x1001612c6
cmp word [rcx + 4], r14w
jne 0x1001612c6
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1001612d6
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x30], r15
test bl, bl
je 0x1001612ed
mov dword [rsi + 0x180], 2
jmp 0x1001613d1
mov rdx, qword [0x100242118]
lea rax, [rsp + 0x30]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x80
mov qword [rbp + 0x40], r15
lea rcx, [rsp + 0x30]
call fcn.100057700
nop
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x40]
dec rax
lea rdi, [rdx + rax*2]
mov rcx, qword [rbp + 0x150]
mov rax, qword [rbp + 0x160]
dec rax
lea rbx, [rcx + rax*2]
sub rbx, rcx
sar rbx, 1
sub rdi, rdx
sar rdi, 1
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
call qword [sym.imp.MSVCR100.dll_wcsncmp]
test eax, eax
jne 0x100161368
cmp rbx, rdi
jbe 0x100161362
mov eax, r12d
jmp 0x100161366
cmovb eax, r13d
test eax, eax
sete bl
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x1001613c6
lea rax, [rsp + 0x30]
cmp rdx, rax
je 0x1001613c6
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x100161394
cmp word [rax + 4], r14w
jne 0x100161394
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x1001613b2
cmp word [rcx + 4], r14w
jne 0x1001613b2
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1001613c2
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x30], r15
test bl, bl
je 0x1001613d1
mov dword [rsi + 0x180], r15d
mov rdx, qword [rbp + 0x150]
test rdx, rdx
je 0x100161431
lea rax, [rbp + 0x50]
cmp rdx, rax
je 0x100161431
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x1001613fc
cmp word [rax + 4], r14w
jne 0x1001613fc
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10016141a
cmp word [rcx + 4], r14w
jne 0x10016141a
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10016142a
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x150], r15
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret