Function at 0x140056ef0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rsi, qword [rcx + 0x10]
xor r15d, r15d
mov r10, qword [rcx]
mov r12d, r8d
mov qword [rsp + 0x68], rsi
mov r14, rdx
mov dword [rbp + 0x60], r8d
mov rdi, rcx
mov dword [rbp + 0x78], r15d
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x58], r10
test rsi, rsi
jne 0x140056f51
xor eax, eax
add rsp, 0x128
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x118], r13
test r14, r14
je case.0x140056f98.101
movzx r13d, byte [rdx]
lea eax, [r13 - 0x13]
cmp eax, 0x8c
ja case.0x140056f98.21
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x58098]
mov ecx, dword [rdx + rax*4 + 0x58034]
add rcx, rdx
jmp rcx
mov rcx, qword [r14 + 0x38]
movsx rax, word [r14 + 0x32]
shl rax, 5
add rax, qword [rcx + 0x20]
cmp byte [rcx], r15b
jne 0x140056fb6
mov r11d, dword [rax + 0x14]
jmp 0x140056fd9
cmp byte [rcx + 1], r15b
je case.0x140056f98.154
mov r9d, dword [rax + 0x10]
mov edx, 0x2f
mov r8d, dword [rcx + 8]
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call fcn.1400416c0
mov r11d, r12d
mov eax, r11d
mov rbx, qword [rsp + 0x120]
mov r13, qword [rsp + 0x118]
add rsp, 0x128
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, dword [r14 + 0x2c]
test r9d, r9d
jns 0x14005701b
mov eax, dword [rdi + 0x68]
test eax, eax
jle 0x140057017
movsx r11d, word [r14 + 0x30]
add r11d, eax
jmp 0x140056fd9
mov r9d, dword [rdi + 0x6c]
movzx eax, byte [r14 + 0x36]
mov rcx, rdi
movsx r8d, word [r14 + 0x30]
mov rdx, qword [r14 + 0x40]
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], r12d
call fcn.140056b90
mov r11d, eax
jmp 0x140056fd9
mov r9d, r12d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call fcn.1400561f0
jmp 0x140056fd6
mov rdx, qword [r14 + 8]
mov r9d, r12d
xor r8d, r8d
mov rcx, rsi
call fcn.140056120
jmp 0x140056fd6
mov rbx, qword [r14 + 8]
xor r8d, r8d
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
lea edx, [r8 + 0x61]
call fcn.1400416c0
xor r9d, r9d
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.140041d00
jmp 0x140056fd6
mov rdx, qword [r14 + 8]
add rdx, 2
mov rax, rdx
jne 0x1400570ab
mov eax, r15d
jmp 0x1400570bf
cmp byte [rdx], r15b
je 0x1400570b8
inc rax
cmp byte [rax], r15b
jne 0x1400570b0
sub eax, edx
and eax, 0x3fffffff
mov rcx, qword [rsi]
lea ebx, [rax - 1]
mov r8d, ebx
call fcn.140025940
mov rdi, rax
mov dword [rsp + 0x20], r15d
mov eax, ebx
mov r9d, r12d
cdq
mov rcx, rsi
sub eax, edx
mov edx, 0x1e
sar eax, 1
mov r8d, eax
call fcn.1400416c0
mov r9d, 0xffffffff
mov r8, rdi
mov edx, eax
mov rcx, rsi
call fcn.140041d00
jmp 0x140056fd6
movsx r8d, word [r14 + 0x30]
mov r9d, r12d
mov edx, 0x1f
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.1400416c0
mov rax, qword [r14 + 8]
cmp byte [rax + 1], r15b
je 0x140056fd6
movsx rcx, word [r14 + 0x30]
mov rax, qword [rdi + 0x208]
mov r8, qword [rsi + 8]
mov rdi, qword [rax + rcx*8 - 8]
mov rcx, qword [rsi]
test r8, r8
je 0x140057190
cmp byte [rcx + 0x51], r15b
jne 0x140057190
movsxd rax, dword [rsi + 0x3c]
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 - 0x17]
mov r8, qword [rbx - 8]
call fcn.140041a40
mov r11d, r12d
test rdi, rdi
jne 0x140057182
mov qword [rbx - 8], r15
mov byte [rbx - 0x17], r15b
jmp 0x140056fd9
mov qword [rbx - 8], rdi
mov byte [rbx - 0x17], 0xfe
jmp 0x140056fd9
mov r8, rdi
mov edx, 0xfffffffe
call fcn.140041a40
jmp 0x140056fd6
mov r11d, dword [r14 + 0x2c]
jmp 0x140056fd9
mov rdx, qword [r14 + 0x10]
mov rcx, rdi
call fcn.140056ef0
mov r11d, eax
jmp 0x140056fd9
mov rdx, qword [r14 + 0x10]
mov rcx, rdi
call fcn.140056ef0
mov dword [rbp + 0x60], eax
cmp eax, r12d
je 0x1400571ef
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov r8d, eax
mov edx, 0x22
mov rcx, rsi
call fcn.1400416c0
mov dword [rbp + 0x60], r12d
mov rcx, qword [r14 + 8]
xor edx, edx
call fcn.140060610
movsx r9d, al
mov r8d, r12d
mov edx, 0x28
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.1400416c0
mov r11d, dword [rbp + 0x60]
mov r8d, 1
mov edx, r11d
mov rcx, rdi
call fcn.140056610
jmp 0x140056fd9
mov rdx, qword [r14 + 0x10]
lea r8, [rbp + 0x78]
mov rcx, rdi
call fcn.140058130
mov rdx, qword [r14 + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140058130
mov r9d, r13d
mov dword [rsp + 0x38], 0x20
mov r8, qword [r14 + 0x18]
mov rcx, rdi
mov rdx, qword [r14 + 0x10]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.140052de0
jmp 0x140057b83
mov rdx, qword [r14 + 0x10]
lea r8, [rbp + 0x78]
mov rcx, rdi
call fcn.140058130
mov rdx, qword [r14 + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140058130
cmp r13d, 0x49
mov dword [rsp + 0x38], 0xa0
mov r9d, r15d
sete r9b
add r9d, 0x4e
jmp 0x14005725b
mov rdx, qword [r14 + 0x10]
lea r8, [rbp + 0x78]
mov rcx, rdi
call fcn.140058130
mov rdx, qword [r14 + 0x18]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140058130
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, eax
mov edx, r13d
mov rcx, rsi
call fcn.1400416c0
jmp 0x140057b83
mov rdx, qword [r14 + 0x10]
movzx eax, byte [rdx]
cmp al, 0x84
jne 0x140057318
mov r9d, r12d
mov r8d, 1
mov rcx, rdi
call fcn.1400561f0
jmp 0x140057b83
cmp al, 0x85
jne 0x140057336
mov rdx, qword [rdx + 8]
mov r9d, r12d
mov r8d, 1
mov rcx, rsi
call fcn.140056120
jmp 0x140057b83
lea r8, [rbp + 0x78]
mov byte [rsp + 0x70], 0x84
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x74], 0x4400
mov rcx, rdi
call fcn.140058130
mov rdx, qword [r14 + 0x10]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.140058130
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, eax
mov edx, 0x5a
mov rcx, rsi
call fcn.1400416c0
jmp 0x140057b83
mov rdx, qword [r14 + 0x10]
lea r8, [rbp + 0x78]
mov rcx, rdi
call fcn.140058130
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov r8d, eax
mov edx, r13d
mov rcx, rsi
call fcn.1400416c0
jmp 0x140057b83
mov edx, 0x19
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rsi
lea r8d, [rdx - 0x18]
call fcn.1400416c0
mov rdx, qword [r14 + 0x10]
lea r8, [rbp + 0x78]
mov rcx, rdi
call fcn.140058130
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, eax
mov edx, r13d
mov rcx, rsi
call fcn.1400416c0
xor r8d, r8d
mov ebx, eax
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
lea edx, [r8 + 0x19]
call fcn.1400416c0
mov edx, dword [rsi + 0x3c]
cmp edx, ebx
jbe 0x14005741e
mov rax, qword [rsi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
jmp 0x140057b83
mov rdx, qword [r14 + 0x38]
test rdx, rdx
jne 0x14005744e
mov r8, qword [r14 + 8]
lea rdx, [0x140149710]
mov rcx, rdi
call fcn.140024a60
jmp 0x140056fd6
movsx rax, word [r14 + 0x32]
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x30]
mov r11d, dword [rax + rcx*8 + 0x10]
jmp 0x140056fd9
test dword [r14 + 4], 0x4000
movzx ecx, byte [r10 + 0x4e]
mov dword [rbp + 0x78], r15d
mov qword [rsp + 0x50], r15
je 0x14005749b
mov qword [rsp + 0x48], r15
mov r13d, r15d
mov rax, qword [r14 + 8]
mov qword [rsp + 0x60], rax
mov rbx, rax
test rax, rax
jne 0x1400574ae
mov ebx, r15d
jmp 0x1400574c3
mov rax, qword [r14 + 0x20]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140057482
mov r13d, dword [rax]
jmp 0x140057485
cmp byte [rax], r15b
je 0x1400574bb
inc rbx
cmp byte [rbx], r15b
jne 0x1400574b3
sub ebx, eax
and ebx, 0x3fffffff
mov byte [rsp + 0x28], r15b
mov r9d, r13d
mov byte [rsp + 0x20], cl
mov r8d, ebx
mov rcx, r10
mov rdx, rax
call fcn.140067470
mov qword [rsp + 0x40], rax
mov rdx, rax
test rax, rax
je 0x140057848
cmp qword [rax + 0x18], r15
je 0x140057848
movzx eax, word [rax + 2]
bt ax, 9
jae 0x14005760f
mov rbx, qword [rsi + 0x30]
movsxd r14, dword [rbx + 0x78]
mov dword [rbp + 0x78], r14d
lea eax, [r14 + 1]
mov dword [rbx + 0x78], eax
lea eax, [r14 - 1]
test r14d, eax
jne 0x140057548
mov rdx, qword [rbx + 0x80]
lea eax, [r14*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14005755c
mov dword [rcx + r14*4], 0xffffffff
mov rbx, qword [rsp + 0x48]
mov eax, r14d
not eax
mov r8d, r12d
mov rcx, rdi
mov dword [rbp + 0x70], eax
mov rdx, qword [rbx + 8]
mov rdx, qword [rdx]
call fcn.1400582d0
cmp r13d, 1
jle 0x1400575e3
mov r14d, 0x28
dec r13d
nop word [rax + rax]
mov r9d, dword [rbp + 0x70]
mov r8d, r12d
mov edx, 0x4d
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.1400416c0
mov r8d, 1
mov edx, r12d
mov rcx, rdi
call fcn.140056610
inc dword [rdi + 0x70]
mov r8d, r12d
mov rdx, qword [rbx + 8]
mov rdx, qword [r14 + rdx]
call fcn.1400582d0
mov rcx, rdi
call fcn.140056840
lea r14, [r14 + 0x28]
sub r13, 1
jne 0x140057590
mov r14d, dword [rbp + 0x78]
mov rdx, qword [rsi + 0x30]
test r14d, r14d
js 0x140057602
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x140057602
mov eax, dword [rsi + 0x3c]
movsxd rcx, r14d
mov dword [r8 + rcx*4], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
jmp 0x140056fd6
bt ax, 0xa
jae 0x140057632
mov rdx, qword [rsp + 0x48]
mov r8d, r12d
mov rcx, rdi
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1400582d0
jmp 0x140056fd6
mov ebx, r15d
test r13d, r13d
jle 0x1400576b7
mov r12, qword [rsp + 0x48]
mov rsi, r15
mov r15d, ebx
mov r14d, ebx
cmp ebx, 0x20
jae 0x14005766f
mov rax, qword [r12 + 8]
xor r8d, r8d
mov rcx, qword [rsi + rax]
lea edx, [r8 + 1]
call fcn.140054960
mov rdx, qword [rsp + 0x40]
test eax, eax
je 0x14005766f
bts r14d, ebx
test byte [rdx + 2], 0x20
je 0x140057693
test r15, r15
jne 0x140057693
mov rdx, qword [r12 + 8]
mov rcx, rdi
mov rdx, qword [rdx + rsi]
call fcn.140052ba0
mov rdx, qword [rsp + 0x40]
mov r15, rax
inc ebx
add rsi, 0x28
cmp ebx, r13d
jl 0x140057648
mov rsi, qword [rsp + 0x68]
mov r12d, dword [rbp + 0x70]
mov qword [rsp + 0x50], r15
xor r15d, r15d
mov dword [rbp + 0x78], r14d
mov r14, qword [rbp + 0x68]
mov rcx, qword [rsp + 0x48]
mov ebx, dword [rbp + 0x78]
test rcx, rcx
je 0x14005773d
test ebx, ebx
jne 0x1400576e9
mov r9d, dword [rdi + 0x44]
mov r8d, dword [rdi + 0x48]
mov dword [rbp + 0x70], r8d
cmp r13d, r9d
jg 0x1400576e9
lea eax, [r8 + r13]
sub r9d, r13d
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x44], r9d
jmp 0x1400576fa
mov eax, dword [rdi + 0x54]
lea r8d, [rax + 1]
add eax, r13d
mov dword [rdi + 0x54], eax
mov dword [rbp + 0x70], r8d
movzx r9d, word [rdx + 2]
test r9b, 0xc0
je 0x14005771d
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
movzx eax, byte [rdx]
add al, 0x66
test al, 0xfd
jne 0x14005771d
and r9b, 0xc0
mov byte [rdx + 0x36], r9b
inc dword [rdi + 0x70]
mov rdx, rcx
mov rcx, rdi
mov r9b, 3
call fcn.140058330
mov rcx, rdi
call fcn.140056840
mov rcx, qword [rsp + 0x48]
jmp 0x140057741
mov dword [rbp + 0x70], r15d
cmp r13d, 2
jl 0x14005776d
test byte [r14 + 4], 0x80
je 0x140057772
mov r9, qword [rcx + 8]
mov r9, qword [r9 + 0x28]
mov rdx, qword [rsp + 0x40]
mov r8d, r13d
mov rcx, qword [rsp + 0x58]
call fcn.14008ba70
mov r14, rax
jmp 0x140057780
test r13d, r13d
jle 0x14005777b
mov r9, qword [rcx + 8]
mov r9, qword [r9]
jmp 0x140057756
mov r14, qword [rsp + 0x40]
test byte [r14 + 2], 0x20
je 0x1400577c9
cmp qword [rsp + 0x50], 0
jne 0x14005779d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x24]
call fcn.1400416c0
mov r8, qword [rsp + 0x50]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rsi
call fcn.140041d00
mov r15d, dword [rbp + 0x70]
mov r8d, ebx
mov r9d, r15d
mov dword [rsp + 0x20], r12d
mov edx, 1
mov rcx, rsi
call fcn.1400416c0
mov r9d, 0xfffffffb
mov r8, r14
mov edx, eax
mov rcx, rsi
call fcn.140041d00
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14005780e
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r13b
test r13d, r13d
je 0x140058029
test ebx, ebx
jne 0x140058029
mov r8d, r13d
mov edx, r15d
mov rcx, rdi
call fcn.140056610
mov r11d, dword [rbp + 0x60]
cmp r13d, dword [rdi + 0x44]
jle 0x140056fd9
mov dword [rdi + 0x44], r13d
mov dword [rdi + 0x48], r15d
jmp 0x140056fd9
mov r9, qword [rsp + 0x60]
lea rdx, [0x1401496f0]
mov r8d, ebx
mov rcx, rdi
call fcn.140024a60
jmp 0x140056fd6
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call fcn.140055320
mov r11d, eax
jmp 0x140056fd9
mov r13, qword [rsi + 0x30]
movsxd rbx, dword [r13 + 0x78]
lea eax, [rbx + 1]
mov dword [r13 + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x1400578b8
mov rdx, qword [r13 + 0x80]
lea eax, [rbx*2 + 1]
mov rcx, qword [r13]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov qword [r13 + 0x80], rax
mov rcx, qword [r13 + 0x80]
test rcx, rcx
je 0x1400578cb
mov dword [rcx + rbx*4], 0xffffffff
mov rcx, qword [rsi + 0x30]
mov eax, ebx
not eax
mov qword [rbp + 0x78], rcx
mov dword [rbp + 0x70], eax
movsxd r13, dword [rcx + 0x78]
lea eax, [r13 + 1]
mov dword [rcx + 0x78], eax
lea eax, [r13 - 1]
test r13d, eax
jne 0x140057917
mov rdx, qword [rcx + 0x80]
lea eax, [r13*2 + 1]
mov rcx, qword [rcx]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov rcx, qword [rbp + 0x78]
mov qword [rcx + 0x80], rax
mov rdx, qword [rcx + 0x80]
test rdx, rdx
je 0x14005792b
mov dword [rdx + r13*4], 0xffffffff
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rsi
lea edx, [r8 + 0x1c]
call fcn.1400416c0
mov r8d, dword [rbp + 0x70]
mov r9d, r13d
not r9d
mov rdx, r14
mov rcx, rdi
call fcn.140055a60
mov edx, 0x19
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rsi
lea r8d, [rdx - 0x18]
call fcn.1400416c0
mov r8, qword [rsi + 0x30]
test ebx, ebx
js 0x14005798a
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x14005798a
mov eax, dword [rsi + 0x3c]
mov dword [rdx + rbx*4], eax
mov eax, dword [rsi + 0x3c]
xor r9d, r9d
dec eax
mov dword [rsp + 0x20], r15d
mov dword [r8 + 0x64], eax
mov rcx, rsi
mov r8d, r12d
lea edx, [r9 + 0x25]
call fcn.1400416c0
mov r8, qword [rsi + 0x30]
test r13d, r13d
js 0x1400579c6
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x1400579c6
mov eax, dword [rsi + 0x3c]
mov dword [rdx + r13*4], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
jmp 0x140056fd6
mov rcx, qword [r14 + 0x10]
lea r8, [rbp + 0x78]
mov rax, qword [r14 + 0x20]
mov rdx, rcx
mov qword [rbp + 0x60], rcx
mov rcx, rdi
mov r13, qword [rax + 8]
mov rbx, qword [r13]
mov qword [rsp + 0x60], rbx
call fcn.140058130
lea r8, [rsp + 0x40]
mov dword [rbp + 0x70], eax
mov rdx, rbx
mov rcx, rdi
call fcn.140058130
movzx ecx, byte [rdi + 0x1f]
mov edx, eax
test cl, cl
jne 0x140057a28
inc dword [rdi + 0x54]
mov r14d, dword [rdi + 0x54]
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x140057a4c
sub cl, 1
movzx eax, cl
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0x24]
jne 0x140057a40
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x140057a4c
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
mov eax, dword [rbp + 0x70]
mov r9d, 0x53
mov r8, qword [rsp + 0x60]
mov rcx, rdi
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.140052de0
mov edx, dword [rsp + 0x40]
mov r13, qword [r13 + 0x28]
test edx, edx
je 0x140057abe
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x140057abe
mov ecx, r15d
lea rax, [rdi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], edx
je 0x140057aba
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140057aa0
mov dword [rdi + r8*4 + 0x24], edx
inc byte [rdi + 0x1f]
jmp 0x140057abe
mov byte [rax + 6], 1
lea r8, [rsp + 0x40]
mov rdx, r13
mov rcx, rdi
call fcn.140058130
mov rdx, qword [rbp + 0x60]
mov r9d, 0x51
mov dword [rsp + 0x38], 0x20
mov r8, r13
mov dword [rsp + 0x30], ebx
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.140052de0
mov r9d, ebx
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov edx, 0x48
mov rcx, rsi
call fcn.1400416c0
test r14d, r14d
je 0x140057b4f
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140057b4f
mov ecx, r15d
lea rax, [rdi + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], r14d
je 0x140057b4b
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140057b30
mov dword [rdi + rdx*4 + 0x24], r14d
inc byte [rdi + 0x1f]
jmp 0x140057b4f
mov byte [rax + 6], 1
test ebx, ebx
je 0x140057b83
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140057b83
mov ecx, r15d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], ebx
je 0x140057b7f
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140057b66
mov dword [rdi + rdx*4 + 0x24], ebx
inc byte [rdi + 0x1f]
jmp 0x140057b83
mov byte [rax + 6], 1
cmp dword [rbp + 0x78], r15d
je 0x140057bc1
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x140057bc1
mov ecx, r15d
lea rax, [rdi + 0x88]
nop
mov edx, dword [rbp + 0x78]
cmp dword [rax + 0xc], edx
je 0x140057bbd
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140057ba0
mov dword [rdi + r8*4 + 0x24], edx
inc byte [rdi + 0x1f]
jmp 0x140057bc1
mov byte [rax + 6], 1
mov r11d, r12d
cmp dword [rsp + 0x40], r15d
je 0x140056fd9
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140056fd9
lea rax, [rdi + 0x88]
mov ecx, dword [rsp + 0x40]
cmp dword [rax + 0xc], ecx
je 0x140057c05
inc r15d
add rax, 0x14
cmp r15d, 0xa
jl 0x140057be3
mov dword [rdi + rdx*4 + 0x24], ecx
inc byte [rdi + 0x1f]
jmp 0x140056fd9
mov byte [rax + 6], 1
jmp 0x140056fd9
mov rbx, qword [r14 + 0x40]
mov r9d, r12d
movsx r8d, word [r14 + 0x30]
mov edx, 0x84
inc r8d
mov dword [rsp + 0x20], r15d
movsx ecx, word [rbx + 0x42]
inc ecx
imul ecx, dword [r14 + 0x2c]
add r8d, ecx
mov rcx, rsi
call fcn.1400416c0
movsx rax, word [r14 + 0x30]
test ax, ax
js 0x140056fd6
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
add rcx, rcx
cmp byte [rax + rcx*8 + 0x29], 0x45
jne 0x140056fd6
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r12d
lea edx, [r9 + 0x27]
jmp 0x140056fce
cmp qword [rdi + 0x1c8], r15
jne 0x140057c94
lea rdx, [0x1401496b8]
mov rcx, rdi
call fcn.140024a60
xor eax, eax
jmp 0x140056fdc
movzx eax, byte [r14 + 1]
cmp al, 2
jne 0x140057cb7
mov rax, qword [rdi + 0x1c0]
mov rcx, rdi
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
movzx eax, byte [r14 + 1]
mov r14, qword [r14 + 8]
cmp al, 4
jne 0x140057cee
mov r9d, 4
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x14]
call fcn.1400416c0
xor r9d, r9d
mov r8, r14
mov edx, eax
mov rcx, rsi
call fcn.140041d00
jmp 0x140056fd6
mov rbx, qword [rdi + 0x10]
movsx esi, al
test rbx, rbx
jne 0x140057d3c
mov rcx, rdi
call fcn.140041580
mov qword [rdi + 0x10], rax
mov rbx, rax
test rax, rax
je 0x140057d26
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.1400416c0
cmp qword [rdi + 0x1c0], r15
jne 0x140057d3c
mov rax, qword [rdi]
test byte [rax + 0x4c], 8
jne 0x140057d3c
mov byte [rdi + 0x23], 1
cmp esi, 2
jne 0x140057d53
mov rax, qword [rdi + 0x1c0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
mov r9d, esi
mov dword [rsp + 0x20], r15d
mov edx, 0x18
mov r8d, 0x713
mov rcx, rbx
call fcn.1400416c0
xor r9d, r9d
mov r8, r14
mov edx, eax
mov rcx, rbx
call fcn.140041d00
jmp 0x140056fd6
mov rcx, qword [r14 + 0x20]
mov r10, r15
mov rbx, qword [rsi + 0x30]
mov qword [rsp + 0x68], rcx
mov rax, qword [rcx + 8]
movsxd r13, dword [rbx + 0x78]
mov qword [rsp + 0x58], rax
mov eax, dword [rcx]
mov dword [rbp + 0x70], eax
lea eax, [r13 + 1]
mov dword [rsp + 0x48], r13d
mov dword [rbx + 0x78], eax
lea eax, [r13 - 1]
test r13d, eax
jne 0x140057de2
mov rdx, qword [rbx + 0x80]
lea eax, [r13*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov qword [rbx + 0x80], rax
mov r10, r15
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140057df6
mov dword [rcx + r13*4], 0xffffffff
mov rdx, qword [r14 + 0x10]
mov eax, r13d
mov qword [rsp + 0x50], rdx
not eax
mov dword [rsp + 0x40], eax
test rdx, rdx
je 0x140057e71
movups xmm0, xmmword [rdx]
lea r8, [rbp + 0x78]
mov rcx, rdi
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rdx + 0x20]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [rdx + 0x40]
movsd qword [rbp - 0x50], xmm0
call fcn.140058130
movzx ecx, byte [rsp + 0x70]
lea r10, [rbp - 0x40]
and dword [rsp + 0x74], 0xffffefff
mov rdx, qword [rsp + 0x50]
mov dword [rbp - 0x64], eax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x30], rax
mov byte [rbp - 0x5a], cl
mov byte [rsp + 0x70], 0x9f
mov byte [rbp - 0x40], 0x4f
movsxd rax, dword [rbp + 0x70]
dec rax
mov qword [rsp + 0x60], rax
test rax, rax
jle 0x140057fa3
mov r14, qword [rsp + 0x58]
lea r13, [rax - 1]
shr r13, 1
inc r13
nop word [rax + rax]
inc dword [rdi + 0x70]
mov rcx, qword [r14]
test rdx, rdx
mov rax, qword [rbp - 0x28]
mov r14, qword [rsi + 0x30]
cmovne rax, rcx
mov qword [rbp - 0x28], rax
cmove r10, rcx
mov qword [rbp + 0x78], r10
movsxd rbx, dword [r14 + 0x78]
lea eax, [rbx + 1]
mov dword [r14 + 0x78], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x140057efb
mov rdx, qword [r14 + 0x80]
lea eax, [rbx*2 + 1]
mov rcx, qword [r14]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov r10, qword [rbp + 0x78]
mov qword [r14 + 0x80], rax
mov rcx, qword [r14 + 0x80]
test rcx, rcx
je 0x140057f0e
mov dword [rcx + rbx*4], 0xffffffff
mov r8d, ebx
mov r9d, 0x10
not r8d
mov rdx, r10
mov rcx, rdi
call fcn.140058ac0
mov r14, qword [rsp + 0x58]
mov r8d, r12d
mov rcx, rdi
mov rdx, qword [r14 + 0x28]
call fcn.1400582d0
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], r15d
lea edx, [r8 + 0x10]
call fcn.1400416c0
mov rcx, rdi
call fcn.140056840
mov r9, qword [rsi + 0x30]
test ebx, ebx
js 0x140057f74
mov rdx, qword [r9 + 0x80]
test rdx, rdx
je 0x140057f74
mov eax, dword [rsi + 0x3c]
mov dword [rdx + rbx*4], eax
mov eax, dword [rsi + 0x3c]
add r14, 0x50
mov rdx, qword [rsp + 0x50]
dec eax
mov r10, qword [rbp + 0x78]
mov dword [r9 + 0x64], eax
mov qword [rsp + 0x58], r14
sub r13, 1
jne 0x140057ea0
mov r13d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
test byte [rbp + 0x70], 1
je 0x140057fd2
inc dword [rdi + 0x70]
lea rax, [rax + rax*4]
mov rdx, qword [rsp + 0x68]
mov r8d, r12d
mov rcx, rdi
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx + rax*8]
call fcn.1400582d0
mov rcx, rdi
call fcn.140056840
jmp 0x140057fe9
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rsi
lea edx, [r8 + 0x1c]
call fcn.1400416c0
mov rdx, qword [rsi + 0x30]
test r13d, r13d
js 0x140058008
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x140058008
mov eax, dword [rsi + 0x3c]
movsxd rcx, r13d
mov dword [r8 + rcx*4], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
jmp 0x140056fd6
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
lea edx, [r8 + 0x1c]
jmp 0x140056fce
mov r11d, dword [rbp + 0x60]
jmp 0x140056fd9