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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x1401af080]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0xa]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 1]
test eax, eax
je 0x14005a173
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0xe0]
add eax, dword [rcx + 0x28]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x34], 0x80
jae 0x14005a106
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x34]
mov byte [rcx + rax], dl
mov dword [rsp + 0x68], 1
jmp 0x14005a12a
movsxd rax, dword [rsp + 0x34]
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140034380
mov dword [rsp + 0x68], eax
movzx eax, byte [rsp + 0x68]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rcx + 8]
mov rcx, rax
call fcn.140034380
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
jmp 0x14005a1f8
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x34], 0x80
jae 0x14005a1c3
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x34]
mov byte [rcx + rax], dl
mov dword [rsp + 0x6c], 1
jmp 0x14005a1e7
movsxd rax, dword [rsp + 0x34]
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140034380
mov dword [rsp + 0x6c], eax
movzx eax, byte [rsp + 0x6c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0xe]
cmp dword [rsp + 0x34], eax
jg 0x14005a2b1
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jge 0x14005a253
mov dword [rsp + 0x30], 4
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
movsxd rax, dword [rsp + 0x3c]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x88], rax
movsxd rcx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
xor eax, eax
jmp 0x14005a624
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x10]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x48]
mov ecx, dword [rcx + 0x38]
sub ecx, 4
xor edx, edx
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0xe]
cmp dword [rsp + 0x30], eax
jle 0x14005a30b
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
lea eax, [rax + rcx + 4]
mov rcx, qword [rsp + 0xe8]
mov dword [rcx], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x58], rax
xor eax, eax
cmp eax, 1
je 0x14005a618
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jle 0x14005a397
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
jl 0x14005a3b7
movsxd rax, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x14005a3fa
cmp dword [rsp + 0x3c], 0
jle 0x14005a3dc
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x14005a3fa
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x90]
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jg 0x14005a416
jmp 0x14005a618
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14005a613
mov qword [rsp + 0x98], 0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x14005a4d4
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0xa0], eax
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.14004f850
cmp eax, dword [rsp + 0xa0]
je 0x14005a48f
xor edx, edx
mov eax, dword [0x1401bb3f0]
mov rcx, qword [rsp + 0x58]
div dword [rcx + 0x34]
inc eax
cmp dword [rsp + 0xa0], eax
je 0x14005a48f
mov byte [rsp + 0x20], 0
mov r9d, dword [rsp + 0xa0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
call fcn.140058e20
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x14005a57c
cmp dword [rsp + 0xa4], 0
jne 0x14005a57c
cmp dword [rsp + 0x74], 0
je 0x14005a52a
mov dword [rsp + 0x70], 4
jmp 0x14005a532
mov dword [rsp + 0x70], 3
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x74]
movzx r8d, byte [rsp + 0x40]
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.14004f8d0
cmp dword [rsp + 0xa4], 0
je 0x14005a57c
mov rcx, qword [rsp + 0x98]
call fcn.140052a90
nop
cmp dword [rsp + 0xa4], 0
je 0x14005a59c
mov rcx, qword [rsp + 0x78]
call fcn.140052a90
mov eax, dword [rsp + 0xa4]
jmp 0x14005a624
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call fcn.140034a80
mov rcx, qword [rsp + 0x78]
call fcn.140052a90
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.140034a80
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x38]
sub eax, 4
mov dword [rsp + 0x44], eax
jmp 0x14005a372
mov rcx, qword [rsp + 0x78]
call fcn.140052a90
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401823c0
add rsp, 0xb8
pop rdi
pop rsi
ret