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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov eax, dword [rsp + 0x78]
shl rax, 1
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*4 + 4]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x78]
shl rax, 1
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x18], rax
mov dword [rsp + 0xc], 0
mov dword [rsp + 8], 0
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
dec eax
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x38], 0
je 0x18005bf50
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 4], eax
jb 0x18005bf73
mov rax, qword [rsp + 0x18]
mov dword [rax], 0
mov rax, qword [rsp + 0x20]
mov dword [rax], 0
mov rax, qword [rsp + 0x90]
jmp 0x18005c189
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 4], eax
jbe 0x18005bf8a
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x10], eax
jmp 0x18005bf92
mov dword [rsp + 0x10], 0
mov eax, dword [rsp + 4]
mov ecx, dword [rsp + 0x78]
sub ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x10]
mov eax, eax
shl rax, 1
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0xc], eax
jae 0x18005bfdd
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x14], eax
jmp 0x18005bfe5
mov eax, dword [rsp + 8]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x14]
mov dword [rsp], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x18005c114
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp], eax
je 0x18005c07f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x18005c07f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp], eax
je 0x18005c07f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18005c07d
jmp 0x18005c07f
jmp 0x18005c04e
mov eax, dword [rsp]
cmp dword [rsp + 0x98], eax
jae 0x18005c114
mov eax, dword [rsp]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp]
mov dword [rax], ecx
mov rax, qword [rsp + 0x90]
add rax, 4
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 4]
dec eax
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
add rax, 4
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp], eax
jne 0x18005c114
mov rax, qword [rsp + 0x18]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov eax, dword [rdx + rax]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
jmp 0x18005c189
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
jge 0x18005c15d
mov rax, qword [rsp + 0x18]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp]
mov dword [rsp + 8], eax
jmp 0x18005c184
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp]
mov dword [rsp + 0xc], eax
jmp 0x18005bf11
add rsp, 0x48
ret