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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x100
mov rdi, qword [rcx + 0x10]
mov r10, qword [rcx]
mov qword [rax - 0x10], rbx
movzx ebx, byte [rsp + 0x150]
mov qword [rax - 0x20], rsi
xor esi, esi
mov qword [rax - 0x28], r12
mov r12, rdx
mov qword [rax - 0x30], r13
mov qword [rax - 0x40], r15
mov r15, rcx
mov dword [rsp + 0x74], esi
mov dword [rsp + 0x80], esi
mov dword [rsp + 0xa4], esi
mov byte [rsp + 0x50], sil
mov dword [rsp + 0x98], 0xffffffff
mov qword [rsp + 0x88], r10
test rdi, rdi
jne 0x18005996c
call fcn.1800258f0
mov qword [r15 + 0x10], rax
mov rdi, rax
test rax, rax
je 0x18005994d
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.180025a50
mov r10, qword [rsp + 0x88]
cmp qword [r15 + 0x1c0], rsi
jne 0x18005996c
mov rax, qword [r15]
test byte [rax + 0x4c], 8
jne 0x18005996c
mov byte [r15 + 0x23], 1
test byte [r12 + 0x48], 0x20
mov eax, 1
jne 0x180059980
mov qword [rsp + 0x68], rsi
jmp 0x1800599ab
mov rcx, qword [r12 + 0x10]
mov qword [rsp + 0x68], rcx
test rcx, rcx
je 0x1800599a7
nop
mov eax, dword [rcx + 0x64]
and al, 3
cmp al, 2
je 0x1800599a2
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x180059990
mov qword [rsp + 0x68], rcx
movzx eax, word [rcx + 0x5e]
mov dword [rsp + 0x5c], eax
mov r8d, 2
movsx rax, word [r12 + 0x42]
mov qword [rsp + 0xf0], rbp
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xb0], rax
test rax, rax
jle 0x180059bce
mov eax, dword [rsp + 0x138]
mov rbp, rsi
mov rdx, qword [rsp + 0x118]
mov r13d, eax
mov r12, rsi
not r13d
lea r14d, [rax + 1]
nop dword [rax + rax]
movsx eax, word [rdx + 0x40]
lea ecx, [r14 + r13]
cmp ecx, eax
je 0x180059ba6
mov r9, qword [rdx + 8]
movzx eax, byte [r12 + r9 + 0x28]
test al, al
je 0x180059ba6
cmp bl, 0xa
jne 0x180059a30
cmp al, bl
jne 0x180059a30
mov esi, r8d
jmp 0x180059a48
cmp bl, 0xa
movzx esi, bl
cmove esi, eax
cmp esi, 5
jne 0x180059a48
cmp qword [r12 + r9 + 8], 0
cmove esi, r8d
mov ecx, esi
sub ecx, 1
je 0x180059b31
sub ecx, 1
je 0x180059b18
sub ecx, 1
je 0x180059b31
xor esi, esi
mov r8d, r14d
cmp ecx, 1
mov dword [rsp + 0x20], esi
mov rcx, rdi
je 0x180059b01
xor r9d, r9d
lea edx, [rsi + 0x4d]
call fcn.180025a50
mov ebx, eax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax + 8]
mov rdx, qword [rax + r12 + 8]
test rdx, rdx
je 0x180059aaf
cmp byte [rdx], 0x9f
jne 0x180059aaf
mov r8d, dword [rdx + 0x2c]
lea edx, [rsi + 0x21]
mov rcx, qword [r15 + 0x10]
jmp 0x180059ad0
mov r8d, r14d
mov rcx, r15
call fcn.18003dc70
cmp eax, r14d
je 0x180059adc
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x180059adc
mov r8d, eax
mov edx, 0x22
mov r9d, r14d
mov dword [rsp + 0x20], esi
call fcn.180025a50
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x180059af2
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
jmp 0x180059b90
mov r9d, dword [rsp + 0x158]
mov edx, 0x4c
call fcn.180025a50
jmp 0x180059b98
mov rax, qword [r15 + 0x1c0]
mov rcx, r15
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov r9, qword [rdx + 8]
mov r8, qword [rdx]
mov rcx, r10
mov r9, qword [r12 + r9]
lea rdx, str._s._s
call fcn.180006f40
mov r9d, esi
mov dword [rsp + 0x20], r14d
mov edx, 0x17
mov r8d, 0x513
mov rcx, rdi
mov rbx, rax
call fcn.180025a50
mov r9d, 0xffffffff
mov r8, rbx
mov edx, eax
mov rcx, rdi
call fcn.180026090
mov rdx, qword [rdi + 8]
xor esi, esi
test rdx, rdx
je 0x180059b90
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 1
movzx ebx, byte [rsp + 0x150]
mov rdx, qword [rsp + 0x118]
mov r8d, 2
mov r10, qword [rsp + 0x88]
inc r14d
inc rbp
add r12, 0x30
cmp rbp, qword [rsp + 0xb0]
jl 0x180059a00
mov r12, qword [rsp + 0x118]
mov r13, qword [r12 + 0x30]
test r13, r13
je 0x180059d26
mov rax, qword [rsp + 0x88]
test dword [rax + 0x2c], 0x2000
jne 0x180059d26
mov eax, dword [rsp + 0x138]
inc eax
movzx ebp, bl
mov dword [r15 + 0x68], eax
cmp bl, 0xa
jne 0x180059c09
mov ebp, r8d
cmp dword [r13], 0
mov r12d, esi
jle 0x180059d1e
mov r14, rsi
nop word [rax + rax]
mov rsi, qword [rdi + 0x30]
movsxd rbx, dword [rsi + 0x78]
lea eax, [rbx + 1]
mov dword [rsi + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x180059c59
mov rdx, qword [rsi + 0x80]
lea eax, [rbx*2 + 1]
mov rcx, qword [rsi]
movsxd r8, eax
shl r8, 2
call fcn.1800054c0
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x180059c6d
mov edx, 0xffffffff
mov dword [rcx + rbx*4], edx
mov rdx, qword [r13 + 8]
mov r8d, ebx
not r8d
mov r9d, 0x10
mov rcx, r15
mov rdx, qword [r14 + rdx]
call fcn.18003f3b0
cmp ebp, 4
jne 0x180059cac
mov r9d, dword [rsp + 0x158]
lea edx, [rbp + 0xc]
xor eax, eax
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.180025a50
jmp 0x180059cea
mov rax, qword [r13 + 8]
mov r9, qword [r14 + rax + 8]
test r9, r9
jne 0x180059cc5
mov rax, qword [rsp + 0x118]
mov r9, qword [rax]
cmp ebp, 5
mov byte [rsp + 0x28], 3
mov eax, 2
mov byte [rsp + 0x20], 0
cmove ebp, eax
mov edx, 0x113
mov r8d, ebp
mov rcx, r15
call fcn.18004cb70
mov r8, qword [rdi + 0x30]
test ebx, ebx
js 0x180059d04
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x180059d04
mov eax, dword [rdi + 0x3c]
mov dword [rdx + rbx*4], eax
mov eax, dword [rdi + 0x3c]
inc r12d
dec eax
add r14, 0x28
mov dword [r8 + 0x64], eax
cmp r12d, dword [r13]
jl 0x180059c20
mov r12, qword [rsp + 0x118]
cmp byte [rsp + 0x148], 0
mov r10d, 0x4f
mov r14, qword [rsp + 0x68]
je 0x18005a100
test r14, r14
jne 0x18005a100
mov rbx, qword [rdi + 0x30]
movsxd rbp, dword [rbx + 0x78]
lea eax, [rbp + 1]
mov dword [rbx + 0x78], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x180059d85
mov rdx, qword [rbx + 0x80]
lea eax, [rbp*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.1800054c0
mov qword [rbx + 0x80], rax
lea r10d, [r14 + 0x4f]
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x180059d99
mov edx, 0xffffffff
mov dword [rcx + rbp*4], edx
movzx esi, byte [rsp + 0x150]
mov r14d, ebp
movzx ebx, byte [r12 + 0x49]
not r14d
cmp sil, 0xa
je 0x180059db7
mov ebx, esi
jmp 0x180059dc2
cmp ebx, 0xa
mov eax, 2
cmove ebx, eax
mov eax, dword [rsp + 0x140]
mov r13d, dword [rsp + 0x138]
test eax, eax
je 0x180059e00
mov r9d, r14d
mov dword [rsp + 0x20], eax
mov r8d, r13d
mov edx, r10d
mov rcx, rdi
call fcn.180025a50
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180059e00
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x90
cmp ebx, 5
jne 0x180059e47
cmp sil, bl
je 0x180059e47
mov rcx, qword [r12 + 0x10]
test rcx, rcx
je 0x180059e47
movzx eax, byte [rcx + 0x62]
sub al, 3
cmp al, 1
jbe 0x180059e29
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x180059e14
jmp 0x180059e47
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rdi
lea edx, [rax + 0x10]
call fcn.180025a50
mov dword [rsp + 0x80], eax
movsxd rsi, dword [rdi + 0x3c]
mov rcx, qword [rdi + 0x30]
mov eax, esi
cmp dword [rcx + 0x60], esi
jg 0x180059e65
mov rcx, rdi
call fcn.1800259a0
test eax, eax
jne 0x180059e9c
mov eax, dword [rdi + 0x3c]
mov edx, dword [rsp + 0x128]
lea rcx, [rsi + rsi*2]
inc eax
mov dword [rdi + 0x3c], eax
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], r14d
xor r14d, r14d
mov qword [rax + rcx*8 + 0x10], r14
mov word [rax + rcx*8], 0x46
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 0xc], r13d
jmp 0x180059e9f
xor r14d, r14d
test ebx, ebx
je 0x18005a024
cmp ebx, 3
jbe 0x18005a029
cmp ebx, 4
je 0x18005a006
cmp ebx, 5
jne 0x18005a024
mov rax, qword [rsp + 0x88]
mov rsi, r14
test dword [rax + 0x2c], 0x40000
je 0x180059f20
mov rax, qword [r15]
mov ebx, r14d
mov r8, r14
test dword [rax + 0x2c], 0x800000
je 0x180059ef6
mov rdx, r12
mov rcx, r15
call fcn.18006e0a0
mov r8, rax
mov rdx, r8
test r8, r8
je 0x180059f15
nop
cmp byte [rdx + 0x10], 0x6d
jne 0x180059f0c
movzx ecx, byte [rdx + 0x11]
or ebx, ecx
mov rdx, qword [rdx + 0x40]
test rdx, rdx
jne 0x180059f00
test ebx, ebx
cmovne rsi, r8
test rsi, rsi
jne 0x180059f5e
mov rax, qword [r15]
test dword [rax + 0x2c], 0x80000
je 0x180059fbb
mov rcx, qword [r12 + 0x70]
lea r8, [rsp + 0xa8]
mov rdx, qword [r12]
add rcx, 0x50
call fcn.1800091f0
test rax, rax
je 0x180059f56
cmp qword [rax + 0x10], 0
jne 0x180059f5e
cmp qword [r12 + 0x20], 0
je 0x180059fbb
mov rax, qword [r15 + 0x1c0]
mov rcx, r15
mov r9d, dword [rsp + 0x128]
test rax, rax
mov byte [rsp + 0x48], 1
mov ebx, 1
cmovne rcx, rax
mov byte [rsp + 0x40], 5
mov eax, dword [rsp + 0x130]
mov r8, rsi
mov byte [rsp + 0x38], 0
mov rdx, r12
mov word [rsp + 0x30], bx
mov byte [rcx + 0x20], 1
mov rcx, r15
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.18004f920
mov dword [rsp + 0x74], ebx
jmp 0x18005a08a
cmp qword [r12 + 0x10], 0
je 0x180059ff8
mov rax, qword [r15 + 0x1c0]
mov rcx, r15
mov r9d, dword [rsp + 0x130]
test rax, rax
mov r8d, dword [rsp + 0x128]
mov rdx, r12
cmovne rcx, rax
mov qword [rsp + 0x20], r14
mov byte [rcx + 0x20], 1
mov rcx, r15
call fcn.18004fea0
mov ebx, 1
mov dword [rsp + 0x74], ebx
jmp 0x18005a08a
mov r9d, dword [rsp + 0x158]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r14d
lea edx, [r8 + 0x10]
call fcn.180025a50
jmp 0x18005a08a
mov ebx, 2
movsx rax, word [r12 + 0x40]
mov r8, qword [r12]
test ax, ax
js 0x18005a05e
mov r9, qword [r12 + 8]
lea rcx, [rax + rax*2]
add rcx, rcx
lea rdx, str._s._s
mov r9, qword [r9 + rcx*8]
mov rcx, qword [r15]
call fcn.180006f40
mov edx, 0x613
jmp 0x18005a072
mov rcx, qword [r15]
lea rdx, str._s.rowid
call fcn.180006f40
mov edx, 0xa13
mov byte [rsp + 0x28], 2
mov r9, rax
mov r8d, ebx
mov byte [rsp + 0x20], 0xff
mov rcx, r15
call fcn.18004cb70
mov r8, qword [rdi + 0x30]
test ebp, ebp
js 0x18005a0a4
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18005a0a4
mov eax, dword [rdi + 0x3c]
mov dword [rdx + rbp*4], eax
mov eax, dword [rdi + 0x3c]
mov ebx, dword [rsp + 0x80]
dec eax
mov dword [r8 + 0x64], eax
test ebx, ebx
je 0x18005a0fb
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call fcn.180025a50
mov r8d, dword [rdi + 0x3c]
mov dword [rsp + 0xa4], eax
cmp r8d, ebx
jbe 0x18005a0f0
mov rcx, qword [rdi + 8]
lea rdx, [rbx + rbx*2]
mov dword [rcx + rdx*8 + 8], r8d
mov r8d, dword [rdi + 0x3c]
mov rcx, qword [rdi + 0x30]
lea edx, [r8 - 1]
mov dword [rcx + 0x64], edx
mov r14, qword [rsp + 0x68]
mov r13, qword [r12 + 0x10]
xor ecx, ecx
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0xb0], r13
test r13, r13
je 0x18005a9b1
mov ebp, ecx
mov qword [rsp + 0x90], rcx
mov eax, ecx
mov rcx, qword [rsp + 0x120]
cmp dword [rcx + rbp*4], 0
je 0x18005a989
cmp byte [rsp + 0x50], 0
mov esi, dword [rsp + 0x138]
jne 0x18005a160
lea r8d, [rsi + 1]
mov rdx, r12
mov rcx, rdi
call fcn.180057590
mov eax, dword [rsp + 0x58]
mov byte [rsp + 0x50], 1
mov rbx, qword [rdi + 0x30]
mov r12d, dword [rsp + 0x130]
add r12d, eax
mov dword [rsp + 0x78], r12d
mov edx, dword [rbx + 0x78]
mov dword [rsp + 0x70], edx
lea eax, [rdx + 1]
mov dword [rbx + 0x78], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x18005a1b0
mov rcx, qword [rbx]
lea eax, [rdx*2 + 1]
mov rdx, qword [rbx + 0x80]
movsxd r8, eax
shl r8, 2
call fcn.1800054c0
mov edx, dword [rsp + 0x70]
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18005a1c9
movsxd rax, edx
mov r8d, 0xffffffff
mov dword [rcx + rax*4], r8d
cmp qword [r13 + 0x48], 0
mov ebx, edx
not ebx
mov dword [rsp + 0x7c], ebx
je 0x18005a21e
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov rax, qword [rsp + 0x120]
lea edx, [r8 + 0x1c]
mov r9d, dword [rax + rbp*4]
call fcn.180025a50
lea eax, [rsi + 1]
mov r9d, 0x10
mov dword [r15 + 0x68], eax
mov r8d, ebx
mov rdx, qword [r13 + 0x48]
mov rcx, r15
call fcn.18003f860
xor r9d, r9d
mov dword [r15 + 0x68], r9d
jmp 0x18005a221
xor r9d, r9d
movzx ecx, word [r13 + 0x60]
mov edx, dword [r15 + 0x44]
mov ebp, dword [r15 + 0x48]
mov dword [rsp + 0x54], ebp
cmp ecx, edx
jg 0x18005a245
lea eax, [rcx + rbp]
sub edx, ecx
mov dword [r15 + 0x48], eax
mov dword [r15 + 0x44], edx
jmp 0x18005a256
mov eax, dword [r15 + 0x54]
lea ebp, [rax + 1]
add eax, ecx
mov dword [r15 + 0x54], eax
mov dword [rsp + 0x54], ebp
movzx ecx, word [r13 + 0x60]
cmp r9w, cx
jae 0x18005a2ff
mov r14, qword [rsp + 0x118]
mov ebx, ebp
mov r15d, dword [rsp + 0x98]
mov rsi, r9
mov r12d, dword [rsp + 0x138]
mov rax, qword [r13 + 8]
movsx ecx, word [rsi + rax]
test ecx, ecx
js 0x18005a2a1
movsx eax, word [r14 + 0x40]
cmp ecx, eax
je 0x18005a2a1
lea r8d, [r12 + 1]
add r8d, ecx
jmp 0x18005a2ba
cmp r15d, ebx
je 0x18005a2d2
cmp qword [r13 + 0x48], 0
mov r15d, ebx
mov eax, 0xffffffff
mov r8d, r12d
cmovne r15d, eax
mov dword [rsp + 0x20], r9d
mov edx, 0x22
mov r9d, ebx
mov rcx, rdi
call fcn.180025a50
xor r9d, r9d
movzx ecx, word [r13 + 0x60]
inc ebx
mov eax, ebx
add rsi, 2
sub eax, ebp
cmp eax, ecx
jl 0x18005a282
mov r14, qword [rsp + 0x68]
mov r12d, dword [rsp + 0x78]
mov dword [rsp + 0x98], r15d
mov r15, qword [rsp + 0x110]
mov rax, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x120]
movsxd rbx, dword [rdi + 0x3c]
movzx ebp, cx
mov esi, dword [rdx + rax*4]
mov rax, qword [rdi + 0x30]
cmp dword [rax + 0x60], ebx
jg 0x18005a32e
mov rcx, rdi
call fcn.1800259a0
test eax, eax
jne 0x18005a35f
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
inc dword [rdi + 0x3c]
mov ebx, dword [rsp + 0x54]
mov word [rax + rcx*8], 0x31
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], 0
jmp 0x18005a363
mov ebx, dword [rsp + 0x54]
movzx r8d, word [r13 + 0x60]
mov edx, ebx
mov rcx, r15
call fcn.18003d3a0
cmp dword [rsp + 0x140], 0
je 0x18005a3c3
cmp r14, r13
jne 0x18005a3c3
cmp byte [rsp + 0x148], 0
jne 0x18005a3c3
movsxd rax, dword [rsp + 0x70]
mov r8, qword [rdi + 0x30]
test eax, eax
js 0x18005a3ad
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18005a3ad
mov rcx, rax
mov eax, dword [rdi + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rdi + 0x3c]
mov r12, qword [rsp + 0x118]
dec eax
mov dword [r8 + 0x64], eax
jmp 0x18005a975
movzx ebp, byte [r13 + 0x62]
test ebp, ebp
jne 0x18005a3eb
movzx r11d, word [r13 + 0x60]
mov edx, ebx
mov r8d, r11d
call fcn.18003d3a0
cmp r11d, dword [r15 + 0x44]
jle 0x18005a38b
mov dword [r15 + 0x44], r11d
mov dword [r15 + 0x48], ebx
jmp 0x18005a38b
movzx eax, byte [rsp + 0x150]
cmp al, 0xa
je 0x18005a3fb
mov ebp, eax
jmp 0x18005a406
cmp ebp, 0xa
mov eax, 2
cmove ebp, eax
mov r9d, dword [rsp + 0x7c]
mov r8d, r12d
movzx esi, word [r13 + 0x5e]
mov edx, 0x43
mov rcx, rdi
mov dword [rsp + 0x78], ebp
mov dword [rsp + 0x20], ebx
call fcn.180025a50
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x18005a470
cmp byte [rcx + 0x50], 0
jne 0x18005a470
test eax, eax
jns 0x18005a443
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.180025dd0
xor eax, eax
mov byte [rbx + 1], 0xf2
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x10], esi
mov ebx, dword [rsp + 0x54]
jmp 0x18005a47d
mov r8, rsi
mov edx, 0xfffffff2
call fcn.180025dd0
cmp r13, r14
jne 0x18005a48b
mov r12d, ebx
mov dword [rsp + 0x60], ebx
jmp 0x18005a4c3
mov ecx, dword [r15 + 0x44]
mov edx, dword [rsp + 0x5c]
mov r12d, dword [r15 + 0x48]
mov dword [rsp + 0x60], r12d
cmp edx, ecx
jg 0x18005a4b0
lea eax, [r12 + rdx]
sub ecx, edx
mov dword [r15 + 0x48], eax
mov dword [r15 + 0x44], ecx
jmp 0x18005a4c3
mov eax, dword [r15 + 0x54]
lea r12d, [rax + 1]
add eax, edx
mov dword [r15 + 0x54], eax
mov dword [rsp + 0x60], r12d
mov esi, dword [rsp + 0x140]
test esi, esi
jne 0x18005a4d7
cmp ebp, 5
jne 0x18005a7d9
mov rax, qword [rsp + 0x118]
xor ebx, ebx
test byte [rax + 0x48], 0x20
jne 0x18005a588
mov r8d, dword [rsp + 0x58]
lea edx, [rbx + 0x70]
add r8d, dword [rsp + 0x130]
mov r9d, r12d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.180025a50
test esi, esi
je 0x18005a7db
movsxd rbx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov ecx, ebx
cmp dword [rax + 0x60], ebx
jg 0x18005a530
mov rcx, rdi
call fcn.1800259a0
test eax, eax
jne 0x18005a563
mov ecx, dword [rdi + 0x3c]
mov edx, dword [rsp + 0x7c]
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
lea rcx, [rbx + rbx*2]
mov rax, qword [rdi + 8]
xor ebx, ebx
mov word [rax + rcx*8], 0x4f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rbx
jmp 0x18005a565
xor ebx, ebx
mov rdx, qword [rdi + 8]
mov esi, dword [rsp + 0x54]
test rdx, rdx
je 0x18005a7df
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x90
jmp 0x18005a7df
cmp r13, r14
je 0x18005a66c
mov ebp, ebx
cmp bx, word [r14 + 0x5e]
jae 0x18005a66c
mov r15, qword [rsp + 0x68]
mov r14, rbx
nop word [rax + rax]
movzx edx, word [r13 + 0x60]
mov eax, ebx
test edx, edx
je 0x18005a5df
mov rcx, qword [r15 + 8]
mov r8, qword [r13 + 8]
movzx r9d, word [r14 + rcx]
nop dword [rax + rax]
mov ecx, eax
cmp r9w, word [r8 + rcx*2]
je 0x18005a5e4
inc eax
cmp eax, edx
jl 0x18005a5d0
mov eax, 0xffffffff
movsxd rbx, dword [rdi + 0x3c]
movsx esi, ax
mov ecx, ebx
mov rax, qword [rdi + 0x30]
cmp dword [rax + 0x60], ebx
jg 0x18005a605
mov rcx, rdi
call fcn.1800259a0
test eax, eax
jne 0x18005a643
mov ecx, dword [rdi + 0x3c]
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
lea rcx, [rbx + rbx*2]
mov rax, qword [rdi + 8]
mov word [rax + rcx*8], 0x2f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 8], esi
lea rdx, [rax + rcx*8]
mov eax, dword [rsp + 0x58]
add eax, dword [rsp + 0x130]
mov dword [rdx + 4], eax
xor ebx, ebx
lea eax, [r12 + rbp]
mov qword [rdx + 0x10], rbx
mov dword [rdx + 0xc], eax
jmp 0x18005a645
xor ebx, ebx
movzx eax, word [r15 + 0x5e]
inc ebp
add r14, 2
cmp ebp, eax
jl 0x18005a5b0
mov r15, qword [rsp + 0x110]
mov r14, qword [rsp + 0x68]
mov esi, dword [rsp + 0x140]
test esi, esi
mov esi, dword [rsp + 0x54]
je 0x18005a7df
movzx ecx, word [r14 + 0x5e]
mov ebp, ebx
mov edx, dword [rdi + 0x3c]
mov eax, dword [r13 + 0x64]
add edx, ecx
and al, 3
mov dword [rsp + 0xa0], edx
cmp al, 2
mov dword [rsp + 0x9c], 0x4e
mov edx, r12d
cmove edx, esi
mov dword [rsp + 0xa8], edx
test ecx, ecx
je 0x18005a7df
mov qword [rsp + 0xb8], rbx
mov r13, rbx
nop
mov rax, qword [r14 + 0x40]
mov rcx, qword [r15]
mov r14, qword [rax + r13]
mov rax, qword [rcx + 0x20]
mov r8, r14
movzx ebx, byte [rcx + 0xa1]
mov r9d, ebx
mov rdx, qword [rax + 0x18]
movzx r12d, byte [rdx + 0x71]
movzx edx, r12b
call fcn.18004de50
mov rsi, rax
test bl, bl
jne 0x18005a716
test rax, rax
je 0x18005a701
cmp qword [rax + 0x18], 0
jne 0x18005a716
mov r9, r14
mov r8, rax
movzx edx, r12b
mov rcx, r15
call fcn.18004dba0
mov rsi, rax
mov r10d, dword [rsp + 0x9c]
mov r14, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x140]
mov rbx, qword [rsp + 0xb8]
mov rax, qword [r14 + 8]
movzx ecx, word [r14 + 0x5e]
dec ecx
cmp ebp, ecx
mov ecx, dword [rsp + 0x7c]
movsx edx, word [rbx + rax]
mov eax, 0x4f
cmovne ecx, dword [rsp + 0xa0]
cmove r10d, eax
mov eax, dword [rsp + 0xa8]
inc r8d
add eax, ebp
mov dword [rsp + 0xa0], ecx
add r8d, edx
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov dword [rsp + 0x9c], r10d
mov edx, r10d
mov rcx, rdi
call fcn.180025a50
mov r9d, 0xfffffffc
mov r8, rsi
mov edx, eax
mov rcx, rdi
call fcn.180026090
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18005a7b2
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x90
movzx eax, word [r14 + 0x5e]
add rbx, 2
inc ebp
mov qword [rsp + 0xb8], rbx
add r13, 8
cmp ebp, eax
jl 0x18005a6c0
mov r13, qword [rsp + 0xb0]
xor ebx, ebx
mov esi, dword [rsp + 0x54]
mov edx, dword [rsp + 0x78]
test edx, edx
je 0x18005a841
cmp edx, 3
jbe 0x18005a821
cmp edx, 4
jne 0x18005a841
mov r9d, dword [rsp + 0x158]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
lea edx, [r8 + 0x10]
call fcn.180025a50
mov ebx, dword [rsp + 0x60]
mov r12, qword [rsp + 0x118]
mov ebp, dword [rsp + 0x5c]
jmp 0x18005a90e
mov r8, r13
mov rcx, r15
call fcn.18004cc70
mov ebx, dword [rsp + 0x60]
mov r12, qword [rsp + 0x118]
mov ebp, dword [rsp + 0x5c]
jmp 0x18005a90e
mov rax, qword [r15 + 0x1c0]
mov rcx, r15
test rax, rax
mov r8, rbx
cmovne rcx, rax
mov rax, qword [rsp + 0x88]
mov byte [rcx + 0x20], 1
test dword [rax + 0x2c], 0x40000
je 0x18005a8bb
mov rax, qword [r15]
xor r8d, r8d
mov r9d, r8d
test dword [rax + 0x2c], 0x800000
je 0x18005a892
mov rdx, qword [rsp + 0x118]
mov rcx, r15
call fcn.18006e0a0
mov r9, rax
xor r8d, r8d
mov rdx, r9
test r9, r9
je 0x18005a8b5
nop word [rax + rax]
cmp byte [rdx + 0x10], 0x6d
jne 0x18005a8ac
movzx ecx, byte [rdx + 0x11]
or ebx, ecx
mov rdx, qword [rdx + 0x40]
test rdx, rdx
jne 0x18005a8a0
test ebx, ebx
cmovne r8, r9
mov ebp, dword [rsp + 0x5c]
cmp r13, r14
mov r12, qword [rsp + 0x118]
mov rcx, r15
mov ebx, dword [rsp + 0x60]
sete al
mov r9d, dword [rsp + 0x128]
mov rdx, r12
mov byte [rsp + 0x48], al
mov eax, dword [rsp + 0x130]
mov byte [rsp + 0x40], 5
mov byte [rsp + 0x38], 0
mov word [rsp + 0x30], bp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.18004f920
mov dword [rsp + 0x74], 1
movsxd rax, dword [rsp + 0x70]
mov r8, qword [rdi + 0x30]
test eax, eax
js 0x18005a930
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18005a930
mov rcx, rax
mov eax, dword [rdi + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rdi + 0x3c]
mov edx, esi
dec eax
mov rcx, r15
mov dword [r8 + 0x64], eax
movzx r11d, word [r13 + 0x60]
mov r8d, r11d
call fcn.18003d3a0
cmp r11d, dword [r15 + 0x44]
jle 0x18005a959
mov dword [r15 + 0x44], r11d
mov dword [r15 + 0x48], esi
cmp ebx, esi
je 0x18005a975
mov r8d, ebp
mov edx, ebx
call fcn.18003d3a0
cmp ebp, dword [r15 + 0x44]
jle 0x18005a975
mov dword [r15 + 0x44], ebp
mov dword [r15 + 0x48], ebx
mov rbp, qword [rsp + 0x90]
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x120]
mov r13, qword [r13 + 0x28]
inc eax
inc rbp
mov qword [rsp + 0xb0], r13
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x90], rbp
test r13, r13
jne 0x18005a130
xor ecx, ecx
mov eax, dword [rsp + 0x80]
mov r15, qword [rsp + 0xc8]
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
test eax, eax
je 0x18005aa32
xor r8d, r8d
mov dword [rsp + 0x20], ecx
lea r9d, [rax + 1]
mov rcx, rdi
lea edx, [r8 + 0x10]
call fcn.180025a50
mov eax, dword [rsp + 0xa4]
mov edx, dword [rdi + 0x3c]
cmp edx, eax
jbe 0x18005aa28
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x74]
mov dword [rax], ecx
add rsp, 0x100
pop rdi
ret