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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rdi
push r13
sub rsp, 0x58
xor r11d, r11d
mov rdi, rdx
mov rax, rcx
movzx r13d, r11w
mov word [rsp + 0x88], r11w
cmp r11w, word [rcx + 0xc]
jae 0x180053a96
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov rax, qword [rax + 0x10]
movzx ecx, r13w
mov rsi, qword [rax + rcx*8]
test rsi, rsi
je 0x180053a5b
movzx eax, byte [rsi]
test al, al
je 0x180053a5b
mov r13, qword [rsp + 0x80]
nop dword [rax + rax]
inc rsi
movzx ecx, al
mov r15, rsi
add rsi, rcx
movzx eax, byte [rsi]
inc rsi
mov r10, rsi
mov r14, rsi
add rsi, rax
cmp eax, 1
jne 0x1800538be
movzx ecx, byte [r14]
movzx eax, byte [r15]
mov byte [rdi + rcx*2 + 0x3c], al
movzx ecx, byte [r14]
movzx eax, byte [r15 + 1]
mov byte [rdi + rcx*2 + 0x3d], al
jmp 0x180053a47
cmp ecx, 1
jne 0x180053a2b
mov ecx, dword [rdi + 0xc]
test ecx, ecx
je 0x180053a47
inc dword [rdi + 0x18]
xor edx, edx
movzx eax, byte [r14]
movzx r8d, byte [r14 + 1]
mov r9, qword [rdi + 0x28]
shl r8d, 8
or r8d, eax
mov eax, r8d
div dword [rdi + 0x24]
lea rdx, [rdx + rdx*4]
add r9, rdx
cmp byte [r9], 0
jne 0x18005393f
cmp byte [r9 + 1], 0
jne 0x18005393f
movzx eax, byte [r10]
mov byte [r9], al
movzx eax, byte [r10 + 1]
mov rcx, qword [rdi + 0x28]
mov byte [rdx + rcx + 1], al
movzx eax, byte [r15]
mov rcx, qword [rdi + 0x28]
mov byte [rdx + rcx + 2], al
mov rax, qword [rdi + 0x28]
mov byte [rdx + rax + 3], 0
mov rax, qword [rdi + 0x28]
mov byte [rdx + rax + 4], 1
inc dword [rdi + 0x20]
jmp 0x180053a47
xor edx, edx
mov eax, r8d
div ecx
mov rcx, qword [rdi + 0x10]
cmp qword [rcx + rdx*8], 0
lea r12, [rdx*8]
jne 0x18005397c
mov ecx, 6
call fcn.18002b230
mov rbx, rax
mov rax, qword [rdi + 0x10]
mov qword [r12 + rax], rbx
test rbx, rbx
je 0x180053a44
jmp 0x180053a0f
movsxd rax, edx
mov rdx, qword [rcx + rax*8]
test rdx, rdx
jne 0x18005398d
mov ebp, r11d
jmp 0x1800539ce
movzx r9d, byte [rdx]
mov r10d, r11d
test r9b, r9b
je 0x1800539ca
nop dword [rax]
inc rdx
movzx r8d, r9b
add r8, rdx
movzx eax, r9b
add r10d, 2
movzx edx, byte [r8]
add eax, edx
inc rdx
add rdx, r8
add r10d, eax
movzx r9d, byte [rdx]
test r9b, r9b
jne 0x1800539a0
lea ebp, [r10 + 1]
lea ecx, [rbp + 5]
call fcn.18002b230
mov rbx, rax
test rax, rax
je 0x180053a44
mov rdx, qword [rdi + 0x10]
mov rcx, rax
movsxd r8, ebp
mov rdx, qword [rdx + r12]
call fcn.1800caa00
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rcx + r12]
call fcn.1800c96f4
mov rax, qword [rdi + 0x10]
mov qword [r12 + rax], rbx
lea eax, [rbp - 1]
movsxd rcx, eax
add rbx, rcx
mov byte [rbx], 2
movzx eax, word [r14]
mov word [rbx + 1], ax
mov byte [rbx + 3], 1
movzx eax, byte [r15]
mov byte [rbx + 4], al
mov byte [rbx + 5], 0
jmp 0x180053a44
mov r9d, 0x16
mov qword [rsp + 0x20], r13
mov r8, r15
mov rdx, r14
mov rcx, rdi
call fcn.180053c30
xor r11d, r11d
movzx eax, byte [rsi]
test al, al
jne 0x180053880
movzx r13d, word [rsp + 0x88]
mov rax, qword [rsp + 0x70]
inc r13w
mov word [rsp + 0x88], r13w
cmp r13w, word [rax + 0xc]
jb 0x180053850
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x78]
add rsp, 0x58
pop r13
pop rdi
ret