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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rsi, rcx
mov dword [rcx + 0x20], eax
mov r8, rcx
mov rcx, qword [rcx + 0x128]
call fcn.18004f1c0
mov rcx, qword [rsi + 0x120]
mov edi, eax
mov r8, qword [rcx]
test r8, r8
je 0x180049080
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r8 + 0x40]
mov qword [r8 + 0x20], rdx
mov r8, rdx
test rdx, rdx
jne 0x180049070
mov rcx, qword [rcx]
call fcn.180045990
test rax, rax
je 0x1800490c1
mov qword [rsp + 0x30], rbx
test edi, edi
jne 0x1800490af
mov edx, dword [rax + 0x30]
mov rcx, rsi
mov rbx, qword [rax + 0x20]
call fcn.180048f60
mov edi, eax
mov rax, rbx
test rbx, rbx
jne 0x180049092
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x40
xor ebp, ebp
xor r12d, r12d
mov r13, rdx
mov rsi, rcx
test rdx, rdx
je 0x180049401
mov ebx, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.180038990
mov r12, rax
test rax, rax
je 0x1800493e5
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call fcn.1801530a0
mov dword [r12], ebx
test r12, r12
jne 0x1800493fb
lea eax, [r12 + 7]
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r13 + 0x18]
jmp 0x180049404
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x20], eax
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
test r13, r13
jne 0x18004942f
cmp qword [rsi + 0x128], rbp
je 0x18004942f
mov rcx, rsi
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
jmp 0x180049030
mov qword [rsp + 0x70], rdi
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x38], r14
mov r14, qword [rbx]
test r13, r13
je 0x180049499
cmp qword [rsi + 0x128], rbp
jne 0x180049499
mov rax, qword [r13 + 8]
mov rdi, r14
test rax, rax
cmovne rdi, rax
mov rax, qword [r13]
mov qword [rbx], rax
cmp qword [rbx], rdi
jge 0x18004948f
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.180048340
mov ebp, eax
test eax, eax
je 0x180049463
jmp 0x180049543
test ebp, ebp
jne 0x180049543
jmp 0x18004949c
mov qword [rbx], rbp
mov qword [rsp + 0x30], r15
cmp qword [rbx], r14
jge 0x18004953e
lea rax, [rsp + 0x80]
mov dword [rsp + 0x78], 0
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
mov rcx, rsi
call fcn.180047740
mov r15d, dword [rsp + 0x78]
mov ebp, eax
test r15d, r15d
jne 0x180049508
mov eax, dword [rsi + 0xb8]
add rax, qword [rsi + 0x68]
mov rcx, qword [rbx]
cmp rax, rcx
jne 0x180049508
mov rax, r14
sub rax, rcx
mov rcx, qword [rsi + 0xc8]
add rcx, 8
cqo
idiv rcx
mov r15, rax
xor edi, edi
test ebp, ebp
jne 0x18004953e
nop
cmp edi, r15d
jae 0x1800494a1
cmp qword [rbx], r14
jge 0x18004953e
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.180048340
inc edi
mov ebp, eax
test eax, eax
je 0x180049510
mov r15, qword [rsp + 0x30]
test r13, r13
je 0x1800495df
mov rcx, qword [rsi + 0xc8]
mov eax, dword [r13 + 0x1c]
add rcx, 4
imul rcx, rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsi + 0x128]
test rcx, rcx
je 0x1800495af
mov eax, dword [rcx + 0x88]
cmp dword [r13 + 0x30], eax
je 0x18004958e
mov dword [r13 + 0x24], 0
mov eax, dword [rcx + 0x88]
mov dword [r13 + 0x30], eax
mov eax, dword [r13 + 0x24]
cmp eax, dword [rcx + 0x58]
jae 0x1800495ad
mov dword [rcx + 0x58], eax
mov eax, dword [r13 + 0x28]
mov dword [rcx + 0x60], eax
mov eax, dword [r13 + 0x2c]
mov dword [rcx + 0x64], eax
call fcn.18004cd70
xor ebp, ebp
mov edi, dword [r13 + 0x1c]
test ebp, ebp
jne 0x1800495df
cmp edi, dword [rsi + 0x3c]
jae 0x1800495df
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r12
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.180048340
inc edi
mov ebp, eax
test eax, eax
je 0x1800495b7
test r12, r12
je 0x180049610
cmp dword [r12 + 8], 0
je 0x180049608
lea rdi, [r12 + 0x10]
mov esi, 0x3e
mov rcx, qword [rdi]
call fcn.180044f40
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x1800495f6
mov rcx, r12
call fcn.180038ac0
mov rdi, qword [rsp + 0x70]
test ebp, ebp
jne 0x18004961c
mov qword [rbx], r14
mov eax, ebp
mov r14, qword [rsp + 0x38]
add rsp, 0x40
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x10], edx
push rsi
push r14
sub rsp, 0x38
mov r14d, dword [rcx + 0x30]
mov rsi, rcx
test r14d, r14d
jne 0x18004c2b3
mov eax, dword [rcx + 0x80]
cmp r8d, eax
jge 0x18004c2b3
xor ecx, ecx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], r13
cmp edx, 1
mov r13d, ecx
mov qword [rsp + 0x20], r15
setne r13b
add r13d, r8d
mov r15d, r13d
cmp r13d, eax
jge 0x18004c1ff
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
movsxd rax, r13d
mov qword [rsp + 0x30], r12
imul r12, rax, 0x38
nop word [rax + rax]
mov rax, qword [rsi + 0x78]
mov rbp, qword [r12 + rax + 0x10]
test rbp, rbp
je 0x18004c1da
cmp dword [rbp + 8], 0
je 0x18004c1d2
lea rbx, [rbp + 0x10]
mov edi, 0x3e
nop dword [rax]
mov rcx, qword [rbx]
call fcn.180044f40
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x18004c1c0
mov rcx, rbp
call fcn.180038ac0
inc r15d
add r12, 0x38
cmp r15d, dword [rsi + 0x80]
jl 0x18004c1a0
mov edx, dword [rsp + 0x58]
xor ecx, ecx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov dword [rsi + 0x80], r13d
cmp edx, 1
jne 0x18004c26f
movsxd rax, r13d
imul rbx, rax, 0x38
add rbx, qword [rsi + 0x78]
cmp dword [rbx + 0x20], 0
je 0x18004c25a
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
test rax, rax
je 0x18004c25a
lea rdx, [0x1801a32b0]
cmp rax, rdx
jne 0x18004c254
mov eax, dword [rbx + 0x1c]
mov rdx, qword [rsi + 0xc8]
add rdx, 4
imul rdx, rax
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r14d, eax
mov ecx, dword [rbx + 0x1c]
mov dword [rsi + 0x3c], ecx
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
ret
cmp qword [rsi + 0x128], 0
jne 0x18004c283
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x18004c25a
test r13d, r13d
je 0x18004c297
lea eax, [r13 - 1]
movsxd rcx, eax
imul rcx, rcx, 0x38
add rcx, qword [rsi + 0x78]
mov rdx, rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r14
pop rsi
jmp 0x1800493a0
mov eax, r14d
add rsp, 0x38
pop r14
pop rsi
ret