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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov eax, dword [rsp + 0x130]
mov rdi, rdx
mov r15, qword [rcx + 0x10]
mov rbp, rcx
mov r13, qword [rcx]
mov r12b, 1
mov dword [rsp + 0x44], eax
inc eax
mov dword [rsp + 0x130], eax
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0xa0], r8
lea r14d, [rax + 1]
mov qword [rsp + 0x98], rdx
mov eax, dword [rcx + 0x38]
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x6c], r14d
inc r14d
mov esi, r14d
mov dword [rsp + 0x38], r14d
inc r14d
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x58], r14d
inc r14d
mov dword [rsp + 0x78], r14d
inc r14d
mov dword [rsp + 0x54], r14d
inc r14d
cmp eax, r14d
mov qword [rsp + 0xc0], r13
mov dword [rsp + 0x3c], r14d
cmovle eax, r14d
mov dword [rcx + 0x38], eax
test r15, r15
je 0x1400508fe
mov qword [rsp + 0x48], r15
jmp 0x140050914
call fcn.14007e9c0
mov qword [rsp + 0x48], rax
mov r15, rax
test rax, rax
je 0x140051b5f
test rdi, rdi
je 0x140051b5f
cmp dword [rdi + 0x38], 0
je 0x140051b5f
mov qword [rsp + 0x120], rbx
lea r8, [0x14010f740]
mov rbx, qword [rdi]
lea rcx, str.sqlite__
mov rdx, rbx
xor r9d, r9d
call fcn.1400630f0
test eax, eax
jne 0x140051b57
mov rdx, qword [rdi + 0x68]
mov edi, 0xfff0bdc0
mov dword [rsp + 0x68], edi
test rdx, rdx
je 0x140050993
mov ecx, dword [r13 + 0x28]
xor edi, edi
mov dword [rsp + 0x68], edi
test ecx, ecx
jle 0x140050993
mov rax, qword [r13 + 0x20]
add rax, 0x18
nop dword [rax + rax]
cmp qword [rax], rdx
je 0x14005098f
inc edi
add rax, 0x20
cmp edi, ecx
jl 0x140050980
mov dword [rsp + 0x68], edi
mov rax, qword [r13 + 0x20]
xor r9d, r9d
movsxd rcx, edi
mov r8, rbx
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call fcn.140053de0
test eax, eax
jne 0x140051b57
mov r13, qword [rsp + 0x98]
xor r9d, r9d
mov edx, edi
mov rcx, rbp
mov rax, qword [r13]
mov r8d, dword [r13 + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140053ea0
mov ebx, dword [rsp + 0x138]
mov r9, r13
mov eax, dword [rbp + 0x34]
mov edx, ebx
mov dword [rsp + 0x88], ebx
mov r8d, edi
inc ebx
mov dword [rsp + 0x20], 0x68
mov dword [rsp + 0x138], ebx
lea ecx, [rbx + 1]
cmp eax, ecx
cmovle eax, ecx
mov rcx, rbp
mov dword [rbp + 0x34], eax
call fcn.14006a230
mov r8, qword [r13]
mov rcx, r15
mov edx, dword [rsp + 0x58]
call fcn.14002c590
mov rdi, qword [r13 + 0x10]
mov rdx, r13
mov qword [rsp + 0x60], rdi
lea r13, [0x140137a20]
test rdi, rdi
je 0x14005185e
mov rcx, qword [rsp + 0xa0]
movzx eax, r12b
test rcx, rcx
je 0x140050a66
cmp rcx, rdi
jne 0x14005184c
xor ecx, ecx
cmp qword [rdi + 0x48], rcx
cmovne ecx, eax
test byte [rdx + 0x46], 0x20
mov dword [rsp + 0x84], ecx
je 0x140050a90
mov eax, dword [rdi + 0x64]
and al, 3
cmp al, 2
jne 0x140050a90
movzx edi, word [rdi + 0x5e]
mov r8, rdx
mov esi, edi
jmp 0x140050aa8
mov rax, qword [rsp + 0x60]
movzx edi, word [rdi + 0x60]
mov r8, rax
mov esi, edi
test byte [rax + 0x64], 8
je 0x140050aa8
movzx esi, word [rax + 0x5e]
mov r8, qword [r8]
lea r13d, [rsi - 1]
mov edx, dword [rsp + 0x78]
mov rcx, r15
mov dword [rsp + 0x70], r13d
call fcn.14002c590
mov eax, dword [rbp + 0x38]
lea ecx, [r14 + r13]
mov rdx, qword [rsp + 0x60]
lea r12, [r15 + 0x18]
cmp eax, ecx
mov qword [rsp + 0xb0], r12
lea r14, [r15 + 0xb8]
cmovle eax, ecx
mov dword [rbp + 0x38], eax
mov rax, qword [r12]
movsxd rcx, dword [r14]
mov edx, dword [rdx + 0x58]
cmp dword [rax + 0x3c], ecx
jg 0x140050b1c
mov eax, dword [rsp + 0x68]
mov r9d, edx
mov edx, 0x68
mov dword [rsp + 0x20], eax
mov r8d, ebx
mov rcx, r15
call fcn.14002c4b0
mov rbp, qword [rsp + 0x48]
add rbp, 0x68
jmp 0x140050b52
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r15 + 0x68]
lea rbp, [r15 + 0x68]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x68]
mov dword [rax + rcx*8 + 0xc], edx
mov word [rax + rcx*8], 0x68
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov qword [rax + rcx*8 + 0x10], 0
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov rbx, qword [rcx + 0x10]
call fcn.14005e6f0
mov rcx, qword [rbx]
mov r8, rax
cmp byte [rcx + 0x55], 0
je 0x140050b85
mov edx, 0xfffffffa
call fcn.14002d250
jmp 0x140050bc1
movsxd rax, dword [rbx + 0xb8]
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x68]
cmp byte [rax + rdx*8 - 0x17], 0
lea r10, [rax + rdx*8]
je 0x140050bb3
mov r9d, 0xfffffffa
lea rdx, [r10 - 0x18]
mov rcx, rbx
call fcn.14002d570
jmp 0x140050bc1
test r8, r8
je 0x140050bc1
mov qword [r10 - 8], r8
mov byte [r10 - 0x17], 0xfa
mov rax, qword [r12]
movsxd rcx, dword [r14]
mov ebx, dword [rsp + 0x7c]
cmp dword [rax + 0x3c], ecx
jg 0x140050bf1
mov r9d, ebx
mov dword [rsp + 0x20], 0
mov r8d, edi
mov edx, 0x4c
mov rcx, r15
call fcn.14002c4b0
xor r10d, r10d
jmp 0x140050c1f
lea eax, [rcx + 1]
xor r10d, r10d
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov rax, qword [r12]
mov r9d, dword [rsp + 0x130]
mov rdi, qword [rsp + 0x60]
movsxd rcx, dword [r14]
lea edx, [r9 + 2]
movzx r8d, word [rdi + 0x5e]
cmp dword [rax + 0x3c], ecx
jg 0x140050c63
mov r9d, edx
mov dword [rsp + 0x20], r10d
mov edx, 0x4c
mov rcx, r15
call fcn.14002c4b0
mov r9d, dword [rsp + 0x130]
xor r10d, r10d
jmp 0x140050c8f
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov rax, qword [r12]
movsxd rdx, dword [r14]
cmp dword [rax + 0x3c], edx
jg 0x140050cb8
xor r8d, r8d
mov dword [rsp + 0x20], r9d
mov r9d, ebx
mov rcx, r15
lea edx, [r8 + 0x59]
call fcn.14002c4b0
mov edx, eax
xor ebx, ebx
jmp 0x140050ce6
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r14], eax
mov rax, qword [rbp]
mov dword [rax + rcx*8 + 8], ebx
xor ebx, ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x59
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r10d
mov dword [rax + rcx*8 + 0xc], r9d
mov rcx, qword [r15]
cmp byte [rcx + 0x55], 0
je 0x140050d02
lea r8, [0x140111018]
mov edx, 0xfffffffb
call fcn.14002d250
jmp 0x140050d47
test edx, edx
jns 0x140050d0b
mov edx, dword [r14]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140050d38
mov r9d, 0xfffffffb
lea r8, [0x140111018]
mov rcx, r15
call fcn.14002d570
jmp 0x140050d47
lea rax, [0x140111018]
mov byte [rdx + 1], 0xfb
mov qword [rdx + 0x10], rax
movsxd rax, dword [r14]
test eax, eax
jle 0x140050d5b
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
mov byte [rax + rcx*8 - 0x15], 2
movsxd r8, dword [r14]
mov rax, qword [r12]
mov dword [rsp + 0x80], r8d
cmp dword [rax + 0x3c], r8d
jg 0x140050d94
mov r8d, dword [rsp + 0x138]
xor r9d, r9d
mov rcx, r15
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x39]
call fcn.14002c4b0
mov dword [rsp + 0x80], eax
jmp 0x140050dc7
mov edx, dword [rsp + 0x138]
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [r14], eax
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x39
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbx
mov rax, qword [r12]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x140050ded
mov r9d, dword [rsp + 0x6c]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x20], ebx
lea edx, [r8 + 0x4c]
call fcn.14002c4b0
jmp 0x140050e1b
mov edx, dword [rsp + 0x6c]
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov ebx, dword [r14]
test r13d, r13d
jle 0x140051450
mov rcx, r15
call fcn.14002cb60
mov rcx, qword [rsp + 0xc0]
mov ebx, eax
mov edx, esi
mov dword [rsp + 0x74], eax
lea rdx, [rdx*4 - 4]
call fcn.140007000
mov qword [rsp + 0xb8], rax
mov r13, rax
test rax, rax
je 0x140051815
mov rcx, qword [r12]
movsxd rdx, dword [r14]
cmp dword [rcx + 0x3c], edx
jg 0x140050e8b
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 0xd]
call fcn.14002c4b0
xor r8d, r8d
jmp 0x140050eb6
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [r14], eax
mov rax, qword [rbp]
mov word [rax + rcx*8], 0xd
mov byte [rax + rcx*8 + 3], 0
mov qword [rax + rcx*8 + 4], r8
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [r14]
lea eax, [rsi - 1]
mov dword [rsp + 0x50], ecx
cmp eax, 1
jne 0x140050f28
cmp word [rdi + 0x5e], ax
jne 0x140050f28
cmp byte [rdi + 0x62], 0
je 0x140050f28
mov rax, qword [r12]
cmp dword [rax + 0x3c], ecx
jg 0x140050ef9
mov dword [rsp + 0x20], r8d
mov r9d, ebx
mov r8d, dword [rsp + 0x3c]
mov edx, 0x23
mov rcx, r15
call fcn.14002c4b0
xor r8d, r8d
jmp 0x140050f28
mov edx, dword [rsp + 0x3c]
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x23
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, r8
mov r12d, r8d
mov qword [rsp + 0xa8], rcx
nop word [rax + rax]
mov rax, qword [rdi + 0x40]
mov r10, qword [rsp + 0x90]
mov rsi, qword [rcx + rax]
mov rax, qword [r10]
movzx ebp, byte [rax + 0x52]
movzx ebx, byte [rax + 0xa9]
test rsi, rsi
je 0x140050f7e
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call fcn.14005f020
mov r10, qword [rsp + 0x90]
mov rdi, rax
jmp 0x140050f82
mov rdi, qword [rax + 0x10]
test rdi, rdi
je 0x140050f9a
lea rcx, [rbp*4]
add rcx, rbp
lea rdi, [rdi + rcx*8]
add rdi, 0xffffffffffffffd8
test bl, bl
jne 0x140050fbf
test rdi, rdi
je 0x140050faa
cmp qword [rdi + 0x18], 0
jne 0x140050fbf
mov r9, rsi
mov r8, rdi
movzx edx, bpl
mov rcx, r10
call fcn.14005eec0
mov rdi, rax
mov rsi, qword [rsp + 0xb0]
movsxd rdx, dword [r14]
mov ebp, dword [rsp + 0x6c]
mov rcx, qword [rsi]
cmp dword [rcx + 0x3c], edx
jg 0x140050ffb
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov r8d, r12d
mov edx, 0x4c
mov rcx, r15
call fcn.14002c4b0
mov r8, qword [rsp + 0x30]
xor r9d, r9d
jmp 0x14005102e
mov r8, qword [rsp + 0x30]
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor r9d, r9d
mov dword [r14], eax
mov rax, qword [r8]
mov word [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rsi]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x140051068
mov eax, dword [rsp + 0x38]
mov r9d, r12d
mov r8d, dword [rsp + 0x138]
mov edx, 0x60
mov rcx, r15
mov dword [rsp + 0x20], eax
call fcn.14002c4b0
mov r8, qword [rsp + 0x30]
xor r9d, r9d
mov r10d, dword [rsp + 0x38]
jmp 0x14005109f
mov edx, dword [rsp + 0x138]
lea eax, [rcx + 1]
mov r10d, dword [rsp + 0x38]
lea rcx, [rcx + rcx*2]
mov dword [r14], eax
mov rax, qword [r8]
mov word [rax + rcx*8], 0x60
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rsi]
mov edx, dword [rsp + 0x3c]
movsxd rbx, dword [r14]
add edx, r12d
cmp dword [rax + 0x3c], ebx
jg 0x1400510d0
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, r10d
mov rcx, r15
lea edx, [r9 + 0x24]
call fcn.14002c4b0
mov r8, qword [rsp + 0x30]
mov ebx, eax
jmp 0x1400510fb
lea rcx, [rbx + rbx*2]
lea eax, [rbx + 1]
mov dword [r14], eax
mov rax, qword [r8]
mov word [rax + rcx*8], 0x24
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r10d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov rcx, qword [r15]
mov eax, ebx
cmp byte [rcx + 0x55], 0
je 0x14005111a
mov r8, rdi
mov edx, 0xfffffffc
call fcn.14002d250
mov r8, qword [rsp + 0x30]
jmp 0x14005115c
test ebx, ebx
jns 0x140051123
mov eax, dword [r14]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x14005114f
mov r9d, 0xfffffffc
mov r8, rdi
mov rcx, r15
call fcn.14002d570
mov r8, qword [rsp + 0x30]
jmp 0x14005115c
test rdi, rdi
je 0x14005115c
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xfc
mov dword [r13], ebx
movsxd rax, dword [r14]
test eax, eax
jle 0x140051173
lea rcx, [rax + rax*2]
mov rax, qword [r8]
mov byte [rax + rcx*8 - 0x15], 0x80
mov rcx, qword [rsp + 0xa8]
inc r12d
mov rdi, qword [rsp + 0x60]
add rcx, 8
add r13, 4
mov qword [rsp + 0xa8], rcx
cmp r12d, dword [rsp + 0x70]
jl 0x140050f40
mov rax, qword [rsi]
mov r12, rsi
movsxd rcx, dword [r14]
mov r13d, dword [rsp + 0x70]
cmp dword [rax + 0x3c], ecx
jg 0x1400511d6
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov r8d, r13d
mov edx, 0x4c
mov rcx, r15
call fcn.14002c4b0
mov r8, qword [rsp + 0x30]
xor r10d, r10d
jmp 0x140051204
lea eax, [rcx + 1]
xor r10d, r10d
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r8]
mov word [rax + rcx*8], 0x4c
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov rax, qword [rsi]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x140051232
mov r9d, dword [rsp + 0x74]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x20], r10d
lea edx, [r8 + 0xd]
call fcn.14002c4b0
mov r8, qword [rsp + 0x30]
xor r10d, r10d
jmp 0x140051261
mov ebp, dword [rsp + 0x74]
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r8]
mov word [rax + rcx*8], 0xd
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r10d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov rax, qword [r15]
mov ebx, r10d
mov r9d, dword [rsp + 0x50]
mov edx, dword [r14]
cmp byte [rax + 0x55], 0
lea ecx, [r9 - 1]
je 0x140051281
mov dword [0x140137a28], edx
jmp 0x140051296
test ecx, ecx
mov eax, edx
cmovns eax, r9d
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r8]
mov dword [rax + rcx*8 - 0x10], edx
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0xb8]
mov esi, dword [rsp + 0x138]
mov ebp, dword [rsp + 0x3c]
mov qword [rsp + 0x48], rax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15]
mov edx, dword [r14]
mov ecx, dword [rdi]
cmp byte [rax + 0x55], 0
je 0x1400512d7
lea rax, [0x140137a20]
jmp 0x1400512ec
test ecx, ecx
lea eax, [rdx - 1]
cmovns eax, ecx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
lea edx, [rbx + rbp]
mov rax, qword [r12]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x14005131f
mov dword [rsp + 0x20], edx
mov r9d, ebx
mov edx, 0x60
mov r8d, esi
mov rcx, r15
call fcn.14002c4b0
mov r8, qword [rsp + 0x30]
xor r10d, r10d
jmp 0x140051348
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r8]
mov word [rax + rcx*8], 0x60
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r10
inc ebx
add rdi, 4
cmp ebx, r13d
jl 0x1400512c0
mov rax, qword [r12]
mov rsi, qword [rsp + 0xb8]
mov ebp, dword [rsp + 0x74]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x14005137b
mov eax, dword [r14]
not ebp
movsxd rcx, ebp
mov dword [rdx + rcx*4], eax
mov r13, qword [rsp + 0xc0]
cmp qword [r13 + 0x298], 0
je 0x14005139d
mov rdx, rsi
mov rcx, r13
call fcn.140006ba0
jmp 0x140051442
cmp rsi, qword [r13 + 0x180]
jb 0x1400513d3
cmp rsi, qword [r13 + 0x188]
jae 0x1400513d3
mov rax, qword [r13 + 0x178]
mov rcx, qword [rsp + 0x48]
mov qword [rsi], rax
dec dword [r13 + 0x160]
mov qword [r13 + 0x178], rsi
mov qword [rsp + 0x48], rcx
jmp 0x140051442
cmp dword [0x140133ca0], 0
je 0x14005142f
mov rcx, qword [0x140137c18]
test rcx, rcx
je 0x1400513ee
call qword [0x140133d28]
mov rcx, rsi
call qword [0x140133ce0]
dec qword [0x1401379c8]
movsxd rcx, eax
sub qword [0x140137980], rcx
mov rcx, rsi
call qword [0x140133cd0]
mov rcx, qword [0x140137c18]
test rcx, rcx
je 0x140051423
call qword [0x140133d38]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rcx
jmp 0x140051442
mov rcx, rsi
call qword [0x140133cd0]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x30]
mov rax, qword [r12]
movsxd rdx, dword [r14]
mov esi, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x130]
cmp dword [rax + 0x3c], edx
jg 0x140051484
mov edx, 0x59
mov dword [rsp + 0x20], esi
mov r9d, r13d
mov rcx, r15
lea r8d, [rdx - 0x58]
call fcn.14002c4b0
mov edx, eax
jmp 0x1400514b7
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r14], eax
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x59
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], 0
mov rcx, qword [r15]
cmp byte [rcx + 0x55], 0
je 0x1400514d3
lea r8, [0x140112c58]
mov edx, 0xfffffffb
call fcn.14002d250
jmp 0x140051518
test edx, edx
jns 0x1400514dc
mov edx, dword [r14]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140051509
mov r9d, 0xfffffffb
lea r8, [0x140112c58]
mov rcx, r15
call fcn.14002d570
jmp 0x140051518
lea rax, [0x140112c58]
mov byte [rdx + 1], 0xfb
mov qword [rdx + 0x10], rax
movsxd rax, dword [r14]
test eax, eax
jle 0x14005152c
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
mov byte [rax + rcx*8 - 0x15], 2
mov rax, qword [r12]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x14005155f
mov r9d, ebx
mov dword [rsp + 0x20], 0
mov ebx, dword [rsp + 0x138]
mov edx, 7
mov r8d, ebx
mov rcx, r15
call fcn.14002c4b0
xor r8d, r8d
jmp 0x140051596
mov edx, dword [rsp + 0x138]
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
xor r8d, r8d
mov dword [rax + rcx*8 + 8], ebx
mov ebx, edx
mov word [rax + rcx*8], 7
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [r12]
movsxd rdx, dword [r14]
cmp dword [rax + 0x3c], edx
jg 0x1400515c3
mov eax, dword [rsp + 0x54]
xor r8d, r8d
mov r9d, r13d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea edx, [r8 + 0x59]
call fcn.14002c4b0
mov edx, eax
xor r13d, r13d
jmp 0x1400515f8
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r14], eax
mov rax, qword [rbp]
mov dword [rax + rcx*8 + 8], r13d
xor r13d, r13d
mov dword [rax + rcx*8 + 4], r8d
mov r8d, dword [rsp + 0x54]
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x59
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], r8d
mov rcx, qword [r15]
cmp byte [rcx + 0x55], 0
je 0x140051614
lea r8, [0x140110e78]
mov edx, 0xfffffffb
call fcn.14002d250
jmp 0x140051659
test edx, edx
jns 0x14005161d
mov edx, dword [r14]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x14005164a
mov r9d, 0xfffffffb
lea r8, [0x140110e78]
mov rcx, r15
call fcn.14002d570
jmp 0x140051659
lea rax, [0x140110e78]
mov byte [rdx + 1], 0xfb
mov qword [rdx + 0x10], rax
movsxd rax, dword [r14]
test eax, eax
jle 0x14005166d
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
mov byte [rax + rcx*8 - 0x15], 1
mov rax, qword [r12]
movsxd rdx, dword [r14]
mov r8d, dword [rsp + 0x58]
cmp dword [rax + 0x3c], edx
jg 0x140051698
mov r9d, 3
mov dword [rsp + 0x20], esi
mov rcx, r15
lea edx, [r9 + 0x60]
call fcn.14002c4b0
mov edx, eax
jmp 0x1400516c7
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r14], eax
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x63
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], 3
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r13
mov rcx, qword [r15]
cmp byte [rcx + 0x55], 0
je 0x1400516e0
lea r8, [0x14010c1d4]
xor edx, edx
call fcn.14002d250
jmp 0x14005170a
test edx, edx
jns 0x1400516e9
mov edx, dword [r14]
dec edx
movsxd rax, edx
lea r8, [0x14010c1d4]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
lea rdx, [rax + rcx*8]
mov rcx, r15
call fcn.14002d570
mov rax, qword [r12]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x14005173d
mov r9d, dword [rsp + 0x44]
mov edx, 0x72
mov r8d, dword [rsp + 0x40]
mov rcx, r15
mov dword [rsp + 0x20], r13d
call fcn.14002c4b0
mov edx, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
jmp 0x140051772
mov edx, dword [rsp + 0x40]
lea eax, [rcx + 1]
mov r8d, dword [rsp + 0x44]
lea rcx, [rcx + rcx*2]
mov dword [r14], eax
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x72
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov rax, qword [r12]
movsxd rcx, dword [r14]
cmp dword [rax + 0x3c], ecx
jg 0x140051798
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, edx
mov rcx, r15
mov edx, 0x73
call fcn.14002c4b0
jmp 0x1400517c3
lea eax, [rcx + 1]
mov dword [r14], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbp]
mov word [rax + rcx*8], 0x73
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r13
movsxd rax, dword [r14]
test eax, eax
jle 0x1400517d7
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
mov byte [rax + rcx*8 - 0x15], 8
mov rax, qword [r15]
lea r13, [0x140137a20]
mov edx, dword [r14]
cmp byte [rax + 0x55], 0
je 0x1400517f2
mov rax, r13
mov dword [rax + 8], edx
jmp 0x140051827
mov ecx, dword [rsp + 0x80]
lea eax, [rdx - 1]
test ecx, ecx
cmovns eax, ecx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbp]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x140051827
mov ebx, dword [rsp + 0x138]
lea r13, [0x140137a20]
mov esi, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov r12d, dword [rsp + 0x84]
mov rbp, qword [rsp + 0x90]
mov r14d, dword [rsp + 0x3c]
mov rdi, qword [rdi + 0x28]
mov qword [rsp + 0x60], rdi
test rdi, rdi
jne 0x140050a54
cmp qword [rsp + 0xa0], 0
jne 0x140051b57
test r12b, r12b
je 0x140051b57
mov rax, qword [r15 + 0x18]
xor ebp, ebp
movsxd rcx, dword [r15 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400518b3
mov r9d, dword [rsp + 0x54]
lea edx, [rbp + 0x64]
mov r8d, dword [rsp + 0x88]
mov rcx, r15
mov dword [rsp + 0x20], ebp
call fcn.14002c4b0
mov rbx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x54]
add rbx, 0x68
jmp 0x1400518f0
mov edx, dword [rsp + 0x88]
lea eax, [rcx + 1]
mov dword [r15 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r15 + 0x68]
lea rbx, [r15 + 0x68]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x54]
mov dword [rax + rcx*8 + 8], edx
mov word [rax + rcx*8], 0x64
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [r15 + 0x18]
movsxd rdi, dword [r15 + 0xb8]
cmp dword [rax + 0x3c], edi
jg 0x14005191a
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, r15
lea edx, [r9 + 0x16]
call fcn.14002c4b0
mov edi, eax
jmp 0x140051948
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [r15 + 0xb8], eax
mov rax, qword [rbx]
mov word [rax + rcx*8], 0x16
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [r15 + 0x18]
movsxd rcx, dword [r15 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140051972
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 0x4f]
call fcn.14002c4b0
jmp 0x1400519a3
mov edx, dword [rsp + 0x78]
lea eax, [rcx + 1]
mov dword [r15 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx]
mov word [rax + rcx*8], 0x4f
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [r15 + 0x18]
movsxd r9, dword [r15 + 0xb8]
cmp dword [rax + 0x3c], r9d
jg 0x1400519d4
mov r8d, dword [rsp + 0x58]
mov r9d, 3
mov rcx, r15
mov dword [rsp + 0x20], esi
lea edx, [r9 + 0x60]
call fcn.14002c4b0
mov r9d, eax
jmp 0x140051a0a
mov edx, dword [rsp + 0x58]
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [r15 + 0xb8], eax
mov rax, qword [rbx]
mov word [rax + rcx*8], 0x63
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], 3
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rbp
mov rcx, qword [r15]
cmp byte [rcx + 0x55], 0
je 0x140051a23
lea r8, [0x14010c1d4]
xor edx, edx
call fcn.14002d250
jmp 0x140051a52
test r9d, r9d
jns 0x140051a32
mov r9d, dword [r15 + 0xb8]
dec r9d
movsxd rax, r9d
lea r8, [0x14010c1d4]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rbx]
lea rdx, [rax + rcx*8]
mov rcx, r15
call fcn.14002d570
mov rax, qword [r15 + 0x18]
movsxd rcx, dword [r15 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140051a88
mov r9d, dword [rsp + 0x44]
mov edx, 0x72
mov r8d, dword [rsp + 0x40]
mov rcx, r15
mov dword [rsp + 0x20], ebp
call fcn.14002c4b0
mov edx, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
jmp 0x140051abf
mov edx, dword [rsp + 0x40]
lea eax, [rcx + 1]
mov r8d, dword [rsp + 0x44]
lea rcx, [rcx + rcx*2]
mov dword [r15 + 0xb8], eax
mov rax, qword [rbx]
mov word [rax + rcx*8], 0x72
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [r15 + 0x18]
movsxd rcx, dword [r15 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140051ae9
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, edx
mov rcx, r15
mov edx, 0x73
call fcn.14002c4b0
jmp 0x140051b17
lea eax, [rcx + 1]
mov dword [r15 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx]
mov word [rax + rcx*8], 0x73
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], rbp
movsxd rax, dword [r15 + 0xb8]
test eax, eax
jle 0x140051b2e
lea rcx, [rax + rax*2]
mov rax, qword [rbx]
mov byte [rax + rcx*8 - 0x15], 8
mov rax, qword [r15]
mov edx, dword [r15 + 0xb8]
cmp byte [rax + 0x55], 0
jne 0x140051b53
lea eax, [rdx - 1]
test edi, edi
cmovns eax, edi
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret