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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r11d, dword [r8 + 0x1c]
mov r12, rdx
dec dword [rcx + 0x44]
xor edx, edx
mov eax, dword [rcx + 0x44]
mov rdi, rcx
mov rsi, qword [rcx + 0x10]
mov r13d, r9d
mov rcx, qword [rsp + 0xd0]
mov r10, r8
mov r9d, dword [r8 + 0x14]
mov r15d, edx
mov rbx, qword [r8]
mov dword [rsp + 0x3c], eax
mov eax, dword [rcx + 4]
movzx ebp, byte [rcx]
mov dword [rsp + 0x40], eax
mov rax, qword [r12]
add rax, 8
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rax
test r9d, r9d
je 0x1400522fa
mov r8d, dword [r8 + 0x10]
mov rcx, rsi
mov dword [rsp + 0x20], edx
mov edx, 0xc
call fcn.14002094c
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
and dword [rsp + 0x20], r15d
mov rcx, rsi
lea edx, [r8 + 0xb]
call fcn.14002094c
mov r14, qword [rsp + 0xc0]
mov rcx, rsi
mov edx, dword [r14 + 0x14]
call fcn.140020d48
mov rcx, qword [rsp + 0xd0]
mov r10, r14
mov r11d, dword [rsp + 0x38]
xor edx, edx
mov r8d, dword [r10 + 0xc]
lea eax, [rbp - 9]
mov dword [rsp + 0x30], r8d
test al, 0xfa
jne 0x14005231c
cmp bpl, 0xe
je 0x14005231c
mov ebp, dword [rcx + 8]
mov dword [rsp + 0xc8], edx
jmp 0x140052387
mov al, byte [rdi + 0x1f]
test al, al
jne 0x140052336
inc dword [rdi + 0x38]
mov edx, dword [rdi + 0x38]
mov dword [rsp + 0xc8], edx
xor edx, edx
mov cl, dl
jmp 0x14005234c
dec al
movzx ecx, al
mov byte [rdi + 0x1f], cl
mov eax, dword [rdi + rcx*4 + 0xbc]
mov dword [rsp + 0xc8], eax
lea eax, [rbp - 0xc]
test al, 0xfd
je 0x140052369
mov edx, r13d
mov rcx, rdi
call fcn.1400373c8
mov r8d, dword [rsp + 0x30]
mov ebp, eax
xor edx, edx
jmp 0x140052387
test cl, cl
jne 0x140052375
inc dword [rdi + 0x38]
mov ebp, dword [rdi + 0x38]
jmp 0x140052384
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0xbc]
mov r13d, edx
mov r14d, dword [rbx]
sub r14d, dword [r10 + 8]
test byte [r10 + 0x24], 1
je 0x14005247d
mov r12d, dword [rdi + 0x34]
inc dword [rdi + 0x38]
mov ebx, dword [rdi + 0x38]
mov dword [rsp + 0x34], r12d
lea eax, [r12 + 1]
mov dword [rdi + 0x34], eax
cmp dword [r10 + 0x14], edx
je 0x1400523cf
xor r9d, r9d
mov dword [rsp + 0x20], edx
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x11]
call fcn.14002094c
mov r15d, eax
lea ecx, [r13 + 1]
mov r9d, ebx
add ecx, r14d
mov r8d, r12d
mov dword [rsp + 0x20], ecx
mov edx, 0x74
mov rcx, rsi
call fcn.14002094c
xor r9d, r9d
test r15d, r15d
je 0x140052409
mov edx, r15d
mov rcx, rsi
call fcn.140021330
mov ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
mov r8d, dword [rsp + 0x30]
mov edx, 0x22
mov dword [rsp + 0x20], r9d
mov rcx, rsi
mov r9d, dword [rsp + 0x38]
call fcn.14002094c
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xb8]
mov r8d, dword [rax + 0x14]
test r8d, r8d
jle 0x140052456
mov r9d, dword [rsp + 0x3c]
mov edx, 0x2f
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.14002094c
mov r8d, dword [rsp + 0x30]
mov r9d, ebx
mov edx, 0x7e
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call fcn.14002094c
mov r8d, dword [rsp + 0x34]
xor r12d, r12d
mov eax, r12d
jmp 0x1400524cd
mov dword [rsp + 0x20], edx
mov r9d, r11d
mov edx, 0x23
mov rcx, rsi
call fcn.14002094c
mov r8d, dword [r12 + 0x14]
inc eax
xor r12d, r12d
mov dword [rsp + 0x44], eax
test r8d, r8d
jle 0x1400524be
mov r9d, dword [rsp + 0x3c]
lea edx, [r12 + 0x2f]
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.14002094c
mov r8d, dword [rsp + 0x30]
mov eax, 1
mov dword [rsp + 0x34], r8d
mov r10, qword [rsp + 0x50]
lea r9d, [rax + r14]
mov dword [rsp + 0xb8], r9d
lea ebx, [r9 - 1]
movsxd rcx, r13d
test r13d, r13d
jle 0x140052504
lea rdx, [r10 + 0x20]
cmp word [rdx], r12w
lea eax, [rbx + 1]
lea rdx, [rdx + 0x28]
cmovne eax, ebx
mov ebx, eax
sub rcx, 1
jne 0x1400524ee
lea eax, [r13 - 1]
movsxd r14, eax
test eax, eax
js 0x140052575
mov edi, dword [rsp + 0x34]
lea r12d, [rax + rbp]
lea rax, [r14 + 1]
lea rax, [r14 + rax*4]
lea r15, [r10 + rax*8]
xor eax, eax
cmp word [r15], ax
je 0x140052534
movzx r9d, word [r15]
dec r9d
jmp 0x140052539
mov r9d, ebx
dec ebx
mov r8d, edi
mov dword [rsp + 0x20], r12d
mov edx, 0x5a
mov rcx, rsi
call fcn.14002094c
xor eax, eax
dec r12d
sub r15, 0x28
sub r14, 1
jns 0x140052525
mov rdi, qword [rsp + 0xb0]
xor r12d, r12d
mov r8d, dword [rsp + 0x34]
mov r9d, dword [rsp + 0xb8]
mov r14d, dword [rsp + 0x48]
mov ecx, r14d
sub ecx, 0xa
je 0x1400525bc
sub ecx, 1
je 0x140052674
sub ecx, 1
je 0x1400525fc
cmp ecx, 2
je 0x1400525fc
mov rbx, qword [rsp + 0xd0]
mov rcx, rsi
mov dword [rsp + 0x20], r12d
cmp r14b, 9
jne 0x1400525ef
mov r8d, dword [rbx + 8]
mov r9d, r13d
mov edx, 0x51
call fcn.14002094c
mov r15d, dword [rsp + 0xc8]
mov r9d, 8
test r15d, r15d
je 0x140052700
cmp r14b, 0xb
jne 0x1400526d3
mov r8d, r13d
mov edx, ebp
mov rcx, rdi
call fcn.14003741c
jmp 0x1400526eb
mov r8d, dword [rbx + 4]
xor r9d, r9d
lea edx, [r9 + 0xe]
jmp 0x1400525b7
mov edx, 0x5a
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.14002094c
mov r15d, dword [rsp + 0xc8]
mov edx, 0x79
mov r8d, dword [rsp + 0x40]
mov r9d, r15d
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.14002094c
mov r8d, dword [rsp + 0x40]
mov r9d, ebp
mov edx, 0x7a
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.14002094c
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x1400525c4
lea rcx, [rax + rax*2]
mov r9d, 8
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], r9w
jmp 0x1400525ca
mov rbx, qword [rsp + 0xd0]
mov r9d, r13d
mov r15d, dword [rsp + 0xc8]
mov r8d, ebp
mov edx, 0x5c
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov rbx, qword [rbx + 0x10]
call fcn.14002094c
mov r9d, r13d
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.140021244
mov r8d, dword [rsp + 0x40]
mov r9d, r15d
mov edx, 0x84
mov dword [rsp + 0x28], r13d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.140020c64
jmp 0x1400525c4
test ebp, ebp
je 0x1400526eb
cmp byte [rdi + 0x1f], r9b
jae 0x140052700
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xbc], ebp
inc byte [rdi + 0x1f]
cmp byte [rdi + 0x1f], r9b
jae 0x140052700
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xbc], r15d
inc byte [rdi + 0x1f]
mov edx, dword [rsp + 0x3c]
mov rcx, rsi
call fcn.140020d48
mov r14, qword [rsp + 0xc0]
mov rcx, rsi
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x20], r12d
mov dl, byte [r14 + 0x24]
not dl
and edx, 1
lea edx, [rdx*2 + 3]
call fcn.14002094c
mov r8d, dword [r14 + 0x10]
test r8d, r8d
je 0x140052758
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r9 + 0x42]
call fcn.14002094c
mov edx, dword [rsp + 0x38]
mov rcx, rsi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140020d48