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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov rax, qword [rdx + 0x140]
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 0xb0], rax
movsxd r15, dword [rdx + 0x34]
and qword [rdx + 0x140], 0
mov rax, qword [rcx]
mov dword [rsp + 0x80], r15d
mov r12d, 1
mov qword [rsp + 0x88], rax
movsx eax, word [rdx + 0x128]
mov dword [rsp + 0x70], eax
mov eax, dword [rdx + 0x88]
mov dword [rsp + 0x78], eax
mov eax, dword [rdx + 0x38]
lea ebp, [r15 + rax]
test r15d, r15d
jne 0x18004a18a
test ebp, ebp
jle 0x18004a18a
add ebp, r12d
mov eax, dword [rcx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea rdx, [rsp + 0x78]
shl ecx, 3
sub eax, ecx
movsxd r14, ecx
mov rcx, rbx
add r14, qword [rbx + 0x88]
movsxd rsi, eax
and rsi, 0xfffffffffffffff8
call fcn.1800490e4
xor r8d, r8d
cmp byte [rdi + 0x20], r8b
je 0x18004a1cb
mov al, r12b
cmp byte [rdi + 0x21], r8b
jne 0x18004a1ce
mov al, r8b
and dword [rbx + 0xc8], 0xffffffdf
movzx eax, al
and eax, r12d
shl eax, 5
or dword [rbx + 0xc8], eax
mov al, byte [rdi + 0x12b]
mov edx, dword [rbx + 0xc8]
test al, al
je 0x18004a22a
mov ecx, 0xa
cmp ebp, ecx
cmovl ebp, ecx
movzx ecx, al
mov eax, 3
shl ecx, 2
xor ecx, edx
and ecx, 0xc
xor ecx, edx
mov dword [rbx + 0xc8], ecx
shr ecx, 2
and cx, ax
sub ax, cx
shl ax, 2
mov word [rbx + 0xc0], ax
and dword [rbx + 0xc8], 0xfffffffc
movsxd r12, ebp
mov rdi, r8
mov rax, r8
imul r12, r12, 0x38
cmp r12, rsi
jg 0x18004a24c
sub rsi, r12
lea rax, [rsi + r14]
jmp 0x18004a24f
mov rdi, r12
movsxd rcx, dword [rsp + 0x70]
mov qword [rbx + 0x68], rax
mov rax, r8
mov r13, rcx
imul r13, r13, 0x38
cmp r13, rsi
jg 0x18004a270
sub rsi, r13
lea rax, [rsi + r14]
jmp 0x18004a273
add rdi, r13
mov qword [rbx + 0x80], rax
movsxd rax, dword [rsp + 0x78]
mov rdx, r8
shl rax, 3
mov qword [rsp + 0x78], rax
cmp rax, rsi
jg 0x18004a299
sub rsi, rax
lea rdx, [rsi + r14]
jmp 0x18004a29c
add rdi, rax
shl r15, 3
mov qword [rbx + 0x70], rdx
mov rax, r8
cmp r15, rsi
jg 0x18004a2b5
sub rsi, r15
lea rax, [rsi + r14]
jmp 0x18004a2b8
add rdi, r15
mov rsi, qword [rsp + 0x88]
mov qword [rbx + 0x78], rax
test rdi, rdi
je 0x18004a35e
mov rdx, rdi
mov rcx, rsi
call fcn.180029234
xor r8d, r8d
mov qword [rbx + 0x100], rax
mov r11, rax
cmp byte [rsi + 0x67], r8b
jne 0x18004a35a
mov rax, qword [rbx + 0x68]
test rax, rax
jne 0x18004a300
cmp r12, rdi
jg 0x18004a300
sub rdi, r12
lea rax, [rdi + r11]
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x18004a31c
cmp r13, rdi
jg 0x18004a31c
sub rdi, r13
lea rax, [rdi + r11]
mov rcx, qword [rbx + 0x70]
mov qword [rbx + 0x80], rax
test rcx, rcx
jne 0x18004a33d
mov rax, qword [rsp + 0x78]
cmp rax, rdi
jg 0x18004a33d
sub rdi, rax
lea rcx, [rdi + r11]
mov rax, qword [rbx + 0x78]
mov qword [rbx + 0x70], rcx
test rax, rax
jne 0x18004a356
cmp r15, rdi
jg 0x18004a356
sub rdi, r15
lea rax, [rdi + r11]
mov qword [rbx + 0x78], rax
mov ecx, dword [rsp + 0x70]
mov edi, 1
cmp byte [rsi + 0x67], r8b
je 0x18004a378
mov word [rbx + 0x20], r8w
mov qword [rbx + 0x24], 0
jmp 0x18004a3e0
mov eax, dword [rsp + 0x80]
mov word [rbx + 0x20], cx
mov dword [rbx + 0x28], eax
mov rax, qword [rbx + 0x80]
test ecx, ecx
jle 0x18004a3aa
add rax, 0x18
sub ecx, edi
mov word [rax - 4], di
mov qword [rax], rsi
mov dword [rax + 8], r8d
add rax, 0x38
test ecx, ecx
jg 0x18004a395
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x24], ebp
test ebp, ebp
jle 0x18004a3cf
add rax, 0x18
sub ebp, edi
mov word [rax - 4], r8w
mov qword [rax], rsi
mov dword [rax + 8], r8d
add rax, 0x38
test ebp, ebp
jg 0x18004a3b9
mov rcx, qword [rbx + 0x78]
mov r8, r15
xor edx, edx
call fcn.1800c5900
xor r8d, r8d
or dword [rbx + 0x30], 0xffffffff
mov byte [rbx + 0xc7], dil
mov dword [rbx + 0x34], r8d
mov qword [rbx + 0x38], r8
mov dword [rbx + 0x2c], edi
mov word [rbx + 0xc4], 0xff02
mov dword [rbx + 0x40], r8d
mov qword [rbx + 0x50], r8
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret