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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov dword [r11 + 0x18], r8d
push rdi
push r15
sub rsp, 0x78
mov qword [r11 - 0x18], rbx
mov rbx, qword [rcx + 0x10]
mov qword [r11 - 0x20], rbp
xor eax, eax
mov qword [r11 - 0x28], rsi
mov ebp, r9d
cmp r8d, ebp
mov qword [r11 - 0x30], r12
lea r9, [r11 - 0x58]
mov qword [r11 - 0x38], r13
mov r13d, r8d
lea r8d, [rax + 3]
cmove r9, rax
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], eax
call fcn.18004d910
mov rcx, rsi
mov r15d, eax
call fcn.18001ba90
movzx ecx, byte [rdi + 0x1f]
inc dword [rdi + 0x78]
mov byte [rsp + 0x90], al
test cl, cl
jne 0x18004a096
inc dword [rdi + 0x58]
mov r12d, dword [rdi + 0x58]
jmp 0x18004a0a3
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0x28]
mov rdx, qword [rsi + 0x10]
mov r8d, r12d
mov rcx, rdi
mov qword [rsp + 0x48], r14
call fcn.180049840
cmp r15d, 5
jne 0x18004a59f
mov rdx, qword [rsi + 0x10]
mov r13, qword [rsi + 0x20]
mov rcx, rdi
call fcn.18004bd90
mov rcx, rbx
mov r14, rax
call fcn.180074380
mov esi, dword [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x98], eax
mov ebp, r8d
cmp dword [rsp + 0xa8], esi
je 0x18004a12f
movzx ecx, byte [rdi + 0x1f]
test cl, cl
jne 0x18004a109
inc dword [rdi + 0x58]
mov ebp, dword [rdi + 0x58]
jmp 0x18004a115
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0x28]
mov r9d, r12d
mov r8d, r12d
mov edx, 0x2b
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.18006b510
xor r8d, r8d
cmp dword [r13], 0
mov r15d, r8d
jle 0x18004a46a
mov rax, r8
mov qword [rsp + 0x38], rax
nop word [rax + rax]
mov rdx, qword [r13 + 8]
lea r8, [rsp + 0x34]
mov rcx, rdi
mov rdx, qword [rax + rdx]
call fcn.18004bc30
mov esi, eax
test ebp, ebp
je 0x18004a1fe
mov rcx, qword [r13 + 8]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + rcx]
nop dword [rax]
movzx ecx, byte [rax]
add cl, 0x65
cmp cl, 1
ja 0x18004a191
mov rax, qword [rax + 0x10]
jmp 0x18004a180
movzx ecx, byte [rax]
cmp cl, 0x9d
jne 0x18004a19d
movzx ecx, byte [rax + 0x36]
cmp cl, 0x61
je 0x18004a1fe
cmp cl, 0x83
jbe 0x18004a1da
cmp cl, 0x86
jbe 0x18004a1fe
cmp cl, 0x98
jne 0x18004a1da
test dword [rax + 4], 0x100000
jne 0x18004a1da
movzx ecx, word [rax + 0x30]
test cx, cx
js 0x18004a1fe
mov rax, qword [rax + 0x40]
movsx rdx, cx
mov rcx, qword [rax + 8]
shl rdx, 5
cmp byte [rdx + rcx + 0x18], 0
jne 0x18004a1fe
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18004a24e
mov r9d, esi
mov r8d, ebp
mov edx, 0x2b
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.1800296a0
xor r9d, r9d
mov eax, dword [r13]
dec eax
cmp r15d, eax
jl 0x18004a32d
mov r8d, dword [rsp + 0xa0]
cmp dword [rsp + 0xa8], r8d
jne 0x18004a32d
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x18004a27d
mov r9d, r8d
mov edx, 0x24
mov rcx, rbx
mov r8d, r12d
mov dword [rsp + 0x20], esi
call fcn.1800296a0
mov edx, eax
jmp 0x18004a2a9
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r9d, r9d
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x2b
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x18004a201
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x24
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r9
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18004a2c1
mov r8, r14
mov edx, 0xfffffffc
call fcn.1800264a0
jmp 0x18004a300
test edx, edx
jns 0x18004a2ca
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18004a2f3
mov r9d, 0xfffffffc
mov r8, r14
mov rcx, rbx
call fcn.1800816e0
jmp 0x18004a300
test r14, r14
je 0x18004a300
mov qword [rdx + 0x10], r14
mov byte [rdx + 1], 0xfc
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18004a406
movsxd rax, dword [rbx + 0x3c]
movzx edx, byte [rsp + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
or dl, 0x10
mov byte [rax + rcx*8 - 0x15], dl
jmp 0x18004a406
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x18004a35a
mov r9d, dword [rsp + 0x98]
mov r8d, r12d
mov edx, 0x25
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.1800296a0
mov edx, eax
jmp 0x18004a38e
mov r8d, dword [rsp + 0x98]
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x25
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r9
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18004a3a6
mov r8, r14
mov edx, 0xfffffffc
call fcn.1800264a0
jmp 0x18004a3e5
test edx, edx
jns 0x18004a3af
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18004a3d8
mov r9d, 0xfffffffc
mov r8, r14
mov rcx, rbx
call fcn.1800816e0
jmp 0x18004a3e5
test r14, r14
je 0x18004a3e5
mov qword [rdx + 0x10], r14
mov byte [rdx + 1], 0xfc
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18004a406
movsxd rax, dword [rbx + 0x3c]
mov rcx, qword [rbx + 8]
lea rdx, [rax + rax*2]
movzx eax, byte [rsp + 0x90]
mov byte [rcx + rdx*8 - 0x15], al
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x18004a445
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x18004a445
xor eax, eax
mov ecx, eax
lea rax, [rdi + 0x90]
cmp dword [rax + 0xc], edx
je 0x18004a441
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18004a424
movzx eax, r8b
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
jmp 0x18004a445
mov byte [rax + 6], 1
mov rax, qword [rsp + 0x38]
inc r15d
add rax, 0x28
mov qword [rsp + 0x38], rax
cmp r15d, dword [r13]
jl 0x18004a150
mov esi, dword [rsp + 0xa0]
xor r8d, r8d
test ebp, ebp
je 0x18004a525
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18004a4a1
mov r9d, dword [rsp + 0xa8]
mov dword [rsp + 0x20], r8d
mov edx, 0x22
mov r8d, ebp
mov rcx, rbx
call fcn.1800296a0
xor r8d, r8d
jmp 0x18004a4d3
mov edx, dword [rsp + 0xa8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x22
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], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18004a4f9
mov dword [rsp + 0x20], r8d
xor r8d, r8d
mov r9d, esi
lea edx, [r8 + 0xd]
mov rcx, rbx
call fcn.1800296a0
jmp 0x18004a525
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0xd
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18004a54d
movsxd rax, dword [rsp + 0x98]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
xor r15d, r15d
dec eax
mov dword [rdx + 0x6c], eax
test ebp, ebp
je 0x18004a790
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18004a790
mov ecx, r15d
lea rax, [rdi + 0x90]
cmp dword [rax + 0xc], ebp
je 0x18004a596
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18004a577
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], ebp
inc byte [rdi + 0x1f]
jmp 0x18004a790
mov byte [rax + 6], 1
jmp 0x18004a790
mov rcx, qword [rsi + 0x10]
call fcn.1800497e0
lea r14, [0x1800bf8b8]
test eax, eax
je 0x18004a63d
mov r8d, r12d
mov rcx, rbx
cmp ebp, r13d
jne 0x18004a5d1
mov r9d, ebp
mov edx, 0x22
call fcn.18006b4a0
jmp 0x18004a63d
mov edx, 0x23
call fcn.18006b430
mov r8d, dword [rsi + 0x2c]
mov r9d, r13d
mov edx, 0x38
mov rcx, rbx
mov ebp, eax
call fcn.18006b4a0
mov edx, dword [rsp + 0xa8]
mov rcx, rbx
call fcn.180073560
mov edx, dword [rbx + 0x3c]
mov rcx, qword [rbx + 0x30]
dec edx
mov dword [rcx + 0x6c], edx
mov ecx, dword [rbx + 0x3c]
test ebp, ebp
jns 0x18004a616
lea ebp, [rcx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x18004a624
mov rax, r14
jmp 0x18004a633
movsxd rax, ebp
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rdx*8]
mov ebp, dword [rsp + 0xa8]
mov dword [rax + 8], ecx
cmp r15d, 1
jne 0x18004a663
mov r8d, dword [rsi + 0x2c]
lea edx, [r15 + 0x1f]
mov r9d, r13d
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.18006b510
xor r15d, r15d
jmp 0x18004a790
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
xor r15d, r15d
cmp dword [rax + 0x64], edx
jg 0x18004a68f
lea r9d, [r15 + 1]
lea edx, [r15 + 0x60]
mov r8d, r12d
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1800296a0
mov edx, eax
jmp 0x18004a6bb
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 0x60
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], r15
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18004a6d8
lea r8, [rsp + 0x90]
mov edx, 1
call fcn.1800264a0
jmp 0x18004a706
test edx, edx
jns 0x18004a6e1
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea r8, [rsp + 0x90]
mov r9d, 1
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.1800816e0
cmp dword [rsp + 0x30], 0
mov r8d, dword [rsi + 0x2c]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r12d
mov rcx, rbx
jne 0x18004a730
mov r9d, r13d
mov edx, 0x1e
call fcn.18006b740
jmp 0x18004a790
xor r9d, r9d
lea edx, [r9 + 0x1f]
call fcn.18006b740
mov r8d, dword [rsp + 0x30]
mov r9d, ebp
mov edx, 0x22
mov rcx, rbx
mov esi, eax
call fcn.18006b4a0
mov edx, r13d
mov rcx, rbx
call fcn.180073560
mov edx, dword [rbx + 0x3c]
mov rcx, qword [rbx + 0x30]
dec edx
mov dword [rcx + 0x6c], edx
mov edx, dword [rbx + 0x3c]
test esi, esi
jns 0x18004a774
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18004a78c
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea r14, [rax + rcx*8]
mov dword [r14 + 8], edx
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
test r12d, r12d
je 0x18004a7e3
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18004a7e3
mov ecx, r15d
lea rax, [rdi + 0x90]
cmp dword [rax + 0xc], r12d
je 0x18004a7df
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18004a7c1
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], r12d
inc byte [rdi + 0x1f]
jmp 0x18004a7e3
mov byte [rax + 6], 1
dec dword [rdi + 0x78]
mov r12, qword [rsp + 0x58]
lea rcx, [rdi + 0x9c]
mov r8d, 0xa
mov edx, dword [rcx]
test edx, edx
je 0x18004a828
mov eax, dword [rdi + 0x78]
cmp dword [rcx - 4], eax
jle 0x18004a828
cmp byte [rcx - 6], 0
je 0x18004a822
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18004a81e
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r15d
dec byte [rdi + 0x25]
add rcx, 0x14
dec r8
jne 0x18004a7f8
add rsp, 0x78
pop r15
pop rdi
ret