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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 4], 1
jg 0x14005c026
jmp 0x14005c4cd
xor r8d, r8d
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14005c4e0
mov rcx, qword [rsp + 0xb8]
call fcn.140057120
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 4], 0
jle 0x14005c090
mov rax, qword [rsp + 0xb8]
cmp dword [rax], 0
jle 0x14005c090
mov rax, qword [rsp + 0xb8]
mov rcx, rax
call fcn.140048f10
mov qword [rsp + 0x80], rax
jmp 0x14005c09c
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14005c0c7
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 0x20]
mov dword [rsp + 0x50], eax
jmp 0x14005c0cf
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x30], 1
jmp 0x14005c0eb
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x30], eax
jge 0x14005c28f
mov rax, qword [rsp + 0xb0]
add rax, 8
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.140047f50
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jle 0x14005c147
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.140048f10
cmp dword [rax + 0x20], 0
jne 0x14005c147
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.1400486e0
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jle 0x14005c1e8
cmp qword [rsp + 0x40], 0
je 0x14005c1e8
mov rax, qword [rsp + 0x20]
xor edx, edx
mov rcx, rax
call fcn.140048f60
mov qword [rsp + 0x58], rax
mov r8d, 0x1c
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call fcn.1400cbf20
test eax, eax
jne 0x14005c1e8
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x28], 0
jne 0x14005c1e8
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x28], 0
jne 0x14005c1e8
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x58]
add eax, dword [rcx + 0x20]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x20]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
mov rcx, rax
call fcn.140064eb0
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jle 0x14005c204
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.140048f10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 0
jmp 0x14005c23f
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
cmp dword [rsp + 0x28], eax
jge 0x14005c28a
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x2c]
mov dword [rcx + rax + 0x1c], edx
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov eax, dword [rcx + rax + 0x20]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x14005c235
jmp 0x14005c0e1
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xb8]
mov edx, eax
call fcn.140065020
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x10]
add eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
add rcx, 0x10
mov edx, eax
call fcn.140049460
mov rax, qword [rsp + 0xb8]
movsxd rax, dword [rax]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x38
sub rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xb8]
movsxd rax, dword [rax + 0x10]
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x18]
lea rax, [rcx + rax*2]
movsxd rcx, dword [rsp + 0x38]
shl rcx, 1
sub rax, rcx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x3c], 1
jmp 0x14005c340
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x3c], eax
jge 0x14005c3ff
mov rax, qword [rsp + 0xb0]
add rax, 8
mov edx, dword [rsp + 0x3c]
mov rcx, rax
call fcn.140047f50
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14005c3b9
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rcx + 8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x14005c3fa
movsxd rax, dword [rsp + 0x4c]
shl rax, 1
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rcx + 0x18]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x68], rax
jmp 0x14005c336
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0xb8]
cmp dword [rax], 0
je 0x14005c434
mov rax, qword [rsp + 0xb8]
mov rcx, rax
call fcn.140048f10
cmp qword [rax + 0x28], 0
je 0x14005c441
mov rcx, qword [rsp + 0xb8]
call fcn.140057040
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax]
dec eax
cdqe
imul rax, rax, 0x38
mov rcx, qword [rsp + 0xb8]
add rax, qword [rcx + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp dword [rax + 0x20], 0
jne 0x14005c48c
mov rax, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x78]
lea rsi, [rax + 0x88]
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
jmp 0x14005c4be
mov rax, qword [rsp + 0xb8]
add rax, 0x88
mov r8d, 0x1c
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400cbf20
test eax, eax
je 0x14005c4be
mov rcx, qword [rsp + 0xb8]
call fcn.140057040
mov rax, qword [rsp + 0xb0]
mov dword [rax + 4], 1
add rsp, 0x98
pop rdi
pop rsi
ret