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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, qword [rcx]
mov rsi, rcx
mov r11, qword [rcx + 8]
mov rcx, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r11
mov rax, qword [r13]
mov rbx, qword [r13 + 0x10]
mov qword [rsp + 0x70], rax
call fcn.18002de28
movzx eax, byte [rsi + 0x3b]
sub eax, 1
movsxd rbp, eax
js 0x18004535b
imul rax, rbp, 0x70
lea r13, [r11 + 0x4c]
add r13, rax
lea rdi, [rsi + 0x354]
imul rax, rbp, 0x58
add rdi, rax
mov r8, qword [rbx + 0x30]
mov r12, qword [rdi + 0x34]
mov rdx, qword [r8 + 0x88]
test rdx, rdx
je 0x1800450ef
mov eax, dword [rdi + 4]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x6c], eax
cmp byte [rdi + 0x19], 0x9f
je 0x180045139
movzx eax, byte [rdi + 0x1a]
mov rcx, rbx
movzx edx, byte [rdi + 0x19]
mov r9d, dword [rdi + 0x20]
mov r8d, dword [rdi + 0x1c]
mov dword [rsp + 0x20], eax
call fcn.180020968
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x180045139
mov eax, dword [rbx + 0x3c]
mov rcx, qword [rbx + 8]
dec eax
cdqe
lea rdx, [rax + rax*2]
mov al, byte [rdi + 0x1b]
mov byte [rcx + rdx*8 + 3], al
test dword [r12 + 0x28], 0x800
je 0x1800451f7
cmp dword [rdi + 0x24], 0
jle 0x1800451f7
mov r8, qword [rbx + 0x30]
mov rdx, qword [r8 + 0x88]
test rdx, rdx
je 0x180045170
mov eax, dword [rdi - 4]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x6c], eax
mov r14d, dword [rdi + 0x24]
lea eax, [r14 - 1]
movsxd rcx, eax
mov rax, qword [rdi + 0x2c]
lea rdx, [rcx + rcx*2]
lea r15, [rax + rdx*4]
jmp 0x1800451f2
mov ecx, dword [rbx + 0x3c]
mov edx, dword [r15 + 4]
dec ecx
mov rax, qword [rbx + 0x30]
inc edx
mov dword [rax + 0x6c], ecx
mov rcx, rbx
call fcn.180020dec
mov ecx, dword [rbx + 0x3c]
and dword [rsp + 0x20], 0
mov dword [rax + 8], ecx
mov rcx, rbx
movzx edx, byte [r15 + 8]
mov r9d, dword [r15 + 4]
mov r8d, dword [r15]
call fcn.180020968
mov ecx, dword [rbx + 0x3c]
mov edx, dword [r15 + 4]
dec ecx
mov rax, qword [rbx + 0x30]
dec edx
mov dword [rax + 0x6c], ecx
mov rcx, rbx
call fcn.180020dec
mov ecx, dword [rbx + 0x3c]
lea r15, [r15 - 0xc]
dec r14d
mov dword [rax + 8], ecx
test r14d, r14d
jg 0x180045192
mov r8, qword [rbx + 0x30]
mov rdx, qword [r8 + 0x88]
test rdx, rdx
je 0x180045215
mov eax, dword [rdi - 8]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x6c], eax
mov r9d, dword [rdi]
test r9d, r9d
je 0x180045275
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0xd]
call fcn.180020968
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov edx, dword [rdi]
mov dword [rax + 0x6c], ecx
mov rcx, rbx
call fcn.180020dec
mov ecx, dword [rbx + 0x3c]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0x3c]
mov edx, dword [rdi]
dec ecx
mov rax, qword [rbx + 0x30]
sub edx, 2
mov dword [rax + 0x6c], ecx
mov rcx, rbx
call fcn.180020dec
mov ecx, dword [rbx + 0x3c]
mov dword [rax + 8], ecx
mov r9d, dword [rdi + 0x14]
test r9d, r9d
je 0x180045297
mov r8d, dword [rdi + 0x10]
mov edx, 0x42
and dword [rsp + 0x20], 0
mov rcx, rbx
shr r8d, 1
call fcn.180020968
mov r8d, dword [rdi - 0x14]
test r8d, r8d
je 0x180045344
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 0x40]
call fcn.180020968
test byte [r12 + 0x28], 0x40
mov r14d, eax
jne 0x1800452db
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [r13]
mov rcx, rbx
lea edx, [r9 + 0x7a]
call fcn.180020968
test dword [r12 + 0x28], 0x200
je 0x1800452fe
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rdi - 0xc]
mov rcx, rbx
lea edx, [r9 + 0x7a]
call fcn.180020968
and dword [rsp + 0x20], 0
mov rcx, rbx
cmp byte [rdi + 0x19], 0x46
mov r9d, dword [rdi + 8]
jne 0x18004531b
mov r8d, dword [rdi + 0x1c]
mov edx, 0xe
jmp 0x180045322
xor r8d, r8d
lea edx, [r8 + 0xd]
call fcn.180020968
mov ecx, dword [rbx + 0x3c]
mov edx, r14d
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov rcx, rbx
call fcn.180020dec
mov ecx, dword [rbx + 0x3c]
mov dword [rax + 8], ecx
sub rdi, 0x58
sub r13, 0x70
sub rbp, 1
jns 0x1800450cd
mov r13, qword [rsp + 0x78]
mov r8, qword [rbx + 0x30]
mov rdx, qword [r8 + 0x88]
test rdx, rdx
je 0x180045379
mov eax, dword [rsi + 0x44]
not eax
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
xor r12d, r12d
dec eax
mov dword [r8 + 0x6c], eax
cmp byte [rsi + 0x3b], r12b
jbe 0x1800455a6
mov r13, qword [rsp + 0x80]
lea rdi, [rsi + 0x388]
movzx eax, byte [rdi - 0x1c]
mov r14, qword [rdi]
imul rcx, rax, 0x70
test byte [rcx + r13 + 0x48], 0x10
mov r15, qword [rcx + r13 + 0x28]
je 0x180045429
mov rax, qword [rsp + 0x70]
cmp byte [rax + 0x55], 0
jne 0x180045429
mov r10d, dword [rcx + r13 + 0x40]
mov rcx, rbx
mov edx, dword [rdi - 0x28]
mov r9d, dword [rdi - 0x44]
call fcn.180020dec
mov ecx, dword [rbx + 0x3c]
cmp dword [rdi - 0x28], ecx
jge 0x18004558d
sub ecx, dword [rdi - 0x28]
lea rdx, [rax + 4]
mov r8d, ecx
cmp dword [rdx], r9d
jne 0x18004541a
mov al, byte [rdx - 4]
cmp al, 0x5e
jne 0x18004540b
mov ecx, dword [rdx + 4]
mov eax, dword [rdx + 8]
add ecx, r10d
mov dword [rdx], ecx
mov byte [rdx - 4], 0x52
mov dword [rdx + 4], eax
jmp 0x180045416
cmp al, 0x79
jne 0x18004541a
and dword [rdx], 0
mov byte [rdx - 4], 0x4d
and dword [rdx + 8], 0
add rdx, 0x18
sub r8, 1
jne 0x1800453eb
jmp 0x18004558d
test byte [r15 + 0x46], 2
jne 0x180045492
cmp qword [r15 + 0x18], 0
jne 0x180045492
test byte [rsi + 0x34], 0x10
jne 0x180045492
cmp byte [rsi + 0x38], 0
mov ebp, dword [r14 + 0x28]
jne 0x180045466
test bpl, 0x40
jne 0x180045466
mov r8d, dword [rcx + r13 + 0x4c]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rbx
lea edx, [r9 + 0x6d]
call fcn.180020968
and ebp, 0x4300
cmp ebp, 0x200
jne 0x180045492
mov r8d, dword [rdi - 0x40]
cmp r8d, dword [rsi + 0x50]
je 0x180045492
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 0x6d]
call fcn.180020968
test dword [r14 + 0x28], 0x240
je 0x1800454a2
mov r10, qword [r14 + 0x20]
jmp 0x1800454b4
test dword [r14 + 0x28], 0x2000
je 0x18004558d
mov r10, qword [rdi - 0x10]
test r10, r10
je 0x18004558d
cmp byte [rsi + 0x38], 0
je 0x1800454d1
mov rax, qword [r10 + 0x18]
test byte [rax + 0x46], 0x20
je 0x18004558d
mov rax, qword [rsp + 0x70]
cmp byte [rax + 0x55], 0
jne 0x18004558d
mov edx, dword [rdi - 0x28]
mov rcx, rbx
mov r9d, dword [rbx + 0x3c]
call fcn.180020dec
cmp dword [rdi - 0x28], r9d
jge 0x18004558d
sub r9d, dword [rdi - 0x28]
lea rdx, [rax + 4]
mov ebp, r9d
mov eax, dword [rdi - 0x44]
cmp dword [rdx], eax
jne 0x18004557f
mov al, byte [rdx - 4]
cmp al, 0x5e
jne 0x180045572
test byte [r15 + 0x46], 0x20
movsxd r9, dword [rdx + 4]
je 0x18004553f
mov r8, qword [r15 + 0x10]
jmp 0x180045531
mov eax, dword [r8 + 0x64]
and al, 3
cmp al, 2
je 0x180045536
mov r8, qword [r8 + 0x28]
test r8, r8
jne 0x180045523
mov rax, qword [r8 + 8]
movsx r9d, word [rax + r9*2]
movzx r8d, word [r10 + 0x60]
xor ecx, ecx
test r8d, r8d
jle 0x180045560
mov r11, qword [r10 + 8]
movsxd rax, ecx
cmp r9w, word [r11 + rax*2]
je 0x180045563
inc ecx
cmp ecx, r8d
jl 0x18004554f
or ecx, 0xffffffff
movsx eax, cx
test eax, eax
js 0x18004557f
mov dword [rdx + 4], eax
mov eax, dword [rdi - 0x40]
jmp 0x18004557d
cmp al, 0x79
jne 0x18004557f
mov eax, dword [rdi - 0x40]
mov byte [rdx - 4], 0x7f
mov dword [rdx], eax
add rdx, 0x18
sub rbp, 1
jne 0x180045504
movzx eax, byte [rsi + 0x3b]
inc r12d
add rdi, 0x58
cmp r12d, eax
jl 0x18004539e
mov r13, qword [rsp + 0x78]
mov eax, dword [rsi + 0x48]
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
mov dword [r13 + 0x1d4], eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.180042074