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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, r9
mov qword [rsp + 0x88], rax
mov r15, r8
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov word [rsp + 0xb0], bx
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0xb2]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x78], rbx
mov esi, ebx
mov dword [rsp + 0x80], ebx
lea r14, str.P5_n_
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005ba20
test byte [rcx + 0x1c], 4
je 0x14005ba17
cmp byte [rcx + 0x19], 5
jb 0x14005ba0e
lea edx, [rbx + 0x6d]
lea r12, [0x140008ef8]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000ffa8
jmp 0x14005ba27
lea r12, [0x140008ef8]
jmp 0x14005ba27
lea r12, [0x140008ef8]
jmp 0x14005ba27
lea r12, [0x140008ef8]
mov rax, qword [rsp + 0x88]
mov dword [rax], ebx
mov eax, 0x80000002
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a40b0]
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x50]
call qword [r15 + 0x8b0]
cmp eax, ebx
jne 0x14005baac
mov esi, 1
mov dword [rsp + 0x80], esi
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14005baa7
test byte [rax + 0x1c], 4
je 0x14005baa7
cmp byte [rax + 0x19], 2
jb 0x14005baa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [r15 + 0x40]
lea edx, [rsi + 0x6d]
mov dword [rsp + 0x20], eax
mov r8, r12
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.140011a18
jmp 0x14005c244
jmp 0x14005bb04
mov r9d, dword [rsp + 0x50]
cmp r9d, ebx
jbe 0x14005c218
mov edi, 0x100
cmp r9d, edi
jbe 0x14005bb52
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005bb4c
test byte [rcx + 0x1c], 4
je 0x14005bb4c
cmp byte [rcx + 0x19], 5
jb 0x14005bb4c
mov edx, 0x6f
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov rcx, qword [str.P5_n_]
mov dword [rsp + 0x50], edi
jmp 0x14005bb59
mov rcx, qword [str.P5_n_]
mov edi, dword [rsp + 0x54]
cmp edi, ebx
je 0x14005c1e9
cmp edi, 0x10000
jae 0x14005c1e9
mov rdx, qword [0x1400a4068]
lea r8, [0x1400a4068]
cmp rdx, r8
je 0x14005bc2a
mov r13, rdx
mov rdx, qword [rdx]
cmp dword [r13 + 0x18], edi
jb 0x14005bba1
mov eax, dword [rsp + 0x50]
lea ecx, [rdi + rax]
cmp dword [r13 + 0x18], ecx
jbe 0x14005bbac
cmp rdx, r8
je 0x14005bc2a
jmp 0x14005bb88
mov esi, 1
lea rdi, [r15 + 0x40]
mov rax, qword [r13 + 0x28]
add rax, 0x40
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov edx, esi
mov ecx, edx
mov r9d, 0xc0007d61
lea r8d, [rsi + 1]
call fcn.140077054
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005c244
test byte [rcx + 0x1c], 4
je 0x14005c244
cmp byte [rcx + 0x19], 2
jb 0x14005c244
mov rax, qword [r13 + 0x28]
add rax, 0x40
lea edx, [rsi + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14005835c
jmp 0x14005c244
mov ecx, dword [rsp + 0x50]
shl rcx, 3
call fcn.140076a54
mov qword [rsp + 0x78], rax
cmp rax, rbx
jne 0x14005bc99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14005c244
test byte [rax + 0x1c], 4
je 0x14005c244
cmp byte [rax + 0x19], 2
jb 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x72
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x50]
mov r8, r12
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.14001d4a0
jmp 0x14005c244
mov r8d, dword [rsp + 0x50]
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r15d, ebx
cmp dword [rsp + 0x50], ebx
jbe 0x14005c2c8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx + 0x10]
mov edi, eax
mov ecx, eax
call fcn.140076a54
mov qword [rsp + 0x58], rax
cmp rax, rbx
je 0x14005c1b3
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0xb0]
lea r8, [0x14000ada0]
mov rdx, rdi
mov rcx, rax
call fcn.140033064
mov edi, eax
cmp eax, ebx
jl 0x14005c16c
mov edx, ebx
mov r13, rbx
mov rcx, qword [rsp + 0x70]
cmp dword [rcx + 0x28], ebx
jbe 0x14005bd9a
mov rcx, qword [rcx + 0x20]
mov r10d, dword [rsp + 0x54]
mov r11, qword [rsp + 0x90]
mov rax, qword [rsp + 0x70]
cmp dword [rcx + 0x3c], 1
jne 0x14005bd7b
lea r9, [r11 + 0x658]
mov rax, qword [rcx + 0x48]
sub r9, rax
movzx r8d, word [rax]
movzx edi, word [rax + r9]
sub r8d, edi
jne 0x14005bd60
add rax, 2
test edi, edi
jne 0x14005bd4a
cmp r8d, ebx
jne 0x14005bd6f
lea eax, [r15 + r10]
cmp dword [rcx], eax
je 0x14005bd88
jmp 0x14005bd76
mov rax, qword [rsp + 0x70]
jmp 0x14005bd7b
mov rax, qword [rsp + 0x70]
inc edx
add rcx, 0x58
cmp edx, dword [rax + 0x28]
jae 0x14005bd9f
jmp 0x14005bd36
mov r13d, edx
imul r13, r13, 0x58
mov rax, qword [rsp + 0x70]
add r13, qword [rax + 0x20]
jmp 0x14005bd9f
mov r10d, dword [rsp + 0x54]
cmp r13, rbx
jne 0x14005be22
lea edx, [r15 + r10]
mov dword [rsp + 0x68], edx
mov r8, qword [rsp + 0x60]
mov eax, dword [r8 + 0x1c]
or eax, 4
mov rcx, qword [rsp + 0x90]
lea rdi, [rcx + 0x658]
lea r9, [rcx + 0x450]
mov rcx, qword [0x1400a40c8]
add rcx, 0x70
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], edx
mov rax, qword [r8 + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [r8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x68]
call fcn.1400875a4
mov esi, eax
cmp eax, ebx
jne 0x14005c00c
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x68], eax
jmp 0x14005be2a
mov eax, dword [r13 + 0x40]
mov dword [rsp + 0x68], eax
mov ecx, 0xc0
call fcn.140076a54
mov rdi, rax
cmp rax, rbx
je 0x14005c10b
xor edx, edx
mov r8d, 0xc0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x88]
mov edx, dword [rax]
mov rax, qword [rsp + 0x78]
mov qword [rax + rdx*8], rdi
mov dword [rdi + 0x10], 0x454e494c
mov dword [rdi + 0x14], r15d
mov eax, dword [rsp + 0x54]
lea ecx, [r15 + rax]
mov dword [rdi + 0x1c], ecx
mov eax, dword [rsp + 0x68]
mov dword [rdi + 0x18], eax
mov dword [rdi + 0x20], ebx
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x68], ebx
mov dword [rdi + 0x48], 0x20100000
cmp r13, rbx
je 0x14005bf04
mov rcx, qword [r13 + 0x18]
call fcn.140077860
mov qword [rdi + 0x58], rax
mov rcx, qword [r13 + 0x20]
call fcn.140077860
mov qword [rdi + 0x60], rax
mov rcx, qword [r13 + 0x30]
call fcn.140077860
mov qword [rdi + 0x40], rax
cmp qword [r13 + 0x18], rbx
je 0x14005bede
cmp qword [rdi + 0x58], rbx
je 0x14005c049
cmp qword [r13 + 0x20], rbx
je 0x14005beee
cmp qword [rdi + 0x60], rbx
je 0x14005c049
cmp qword [r13 + 0x30], rbx
je 0x14005bf50
cmp rax, rbx
je 0x14005c049
mov rdx, qword [rsp + 0x60]
jmp 0x14005bf55
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call fcn.140077860
mov qword [rdi + 0x58], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140077860
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x40], rbx
mov rdx, qword [rsp + 0x60]
cmp qword [rdx], rbx
je 0x14005bf3f
cmp qword [rdi + 0x58], rbx
je 0x14005c0aa
cmp qword [rdx + 8], rbx
je 0x14005bf55
cmp rax, rbx
je 0x14005c0aa
jmp 0x14005bf55
mov rdx, qword [rsp + 0x60]
cmp r13, rbx
je 0x14005bf60
mov eax, dword [r13 + 0x14]
jmp 0x14005bf65
mov eax, 1
mov dword [rdi + 0x6c], eax
mov dword [rdi + 0x70], ebx
mov dword [rdi + 0xa4], ebx
mov dword [rdi + 0x50], ebx
mov dword [rdi + 0x54], ebx
mov qword [rdi + 0xb0], rbx
mov rax, r13
neg rax
sbb ecx, ecx
and ecx, 3
inc ecx
mov dword [rdi + 0xb8], ecx
cmp r13, rbx
je 0x14005bf9c
mov eax, dword [r13 + 0x10]
jmp 0x14005bfa2
mov eax, dword [rdx + 0x1c]
or eax, 4
mov dword [rdi + 0x4c], eax
mov rax, qword [0x1400a4070]
lea rcx, [0x1400a4068]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [0x1400a4070], rdi
mov rax, qword [rsp + 0x88]
inc dword [rax]
test byte [rdi + 0x4c], 1
jne 0x14005bfe9
test byte [rdi + 0x4c], 2
jne 0x14005bfe9
mov eax, dword [0x1400a4054]
cmp dword [rdi + 0x18], eax
je 0x14005bfe9
mov eax, ebx
jmp 0x14005bfee
mov eax, 1
cmp eax, 1
jne 0x14005bff9
inc dword [0x1400a3f0c]
inc r15d
cmp r15d, dword [rsp + 0x50]
jae 0x14005c2c8
jmp 0x14005bcb9
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005c244
test byte [rcx + 0x1c], 4
je 0x14005c244
cmp byte [rcx + 0x19], 2
jb 0x14005c244
mov edx, 0x75
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14005c244
test byte [rax + 0x1c], 4
je 0x14005c244
cmp byte [rax + 0x19], 2
jb 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x77
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r8, r12
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400581f8
jmp 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14005c244
test byte [rax + 0x1c], 4
je 0x14005c244
cmp byte [rax + 0x19], 2
jb 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x78
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r8, r12
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400581f8
jmp 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14005c244
test byte [rax + 0x1c], 4
je 0x14005c244
cmp byte [rax + 0x19], 2
jb 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x76
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r8, r12
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400581f8
jmp 0x14005c244
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005c198
test byte [rcx + 0x1c], 4
je 0x14005c198
cmp byte [rcx + 0x19], 2
jb 0x14005c198
mov edx, 0x74
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov ecx, edi
and ecx, 0x1fff0000
movzx eax, di
mov esi, edi
cmp ecx, 0x70000
cmove esi, eax
jmp 0x14005c244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005c244
test byte [rcx + 0x1c], 4
je 0x14005c244
cmp byte [rcx + 0x19], 2
jb 0x14005c244
mov edx, 0x73
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14005c244
mov esi, 1
cmp rcx, r14
je 0x14005c244
test byte [rcx + 0x1c], 4
je 0x14005c244
cmp byte [rcx + 0x19], 2
jb 0x14005c244
lea r9, [r15 + 0x40]
lea edx, [rsi + 0x6f]
mov dword [rsp + 0x20], edi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140011a18
jmp 0x14005c244
mov esi, 1
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14005c244
test byte [rcx + 0x1c], 4
je 0x14005c244
cmp byte [rcx + 0x19], 2
jb 0x14005c244
lea edx, [rsi + 0x78]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.14000ffa8
mov rax, qword [rsp + 0x78]
cmp rax, rbx
je 0x14005c2be
mov r12d, ebx
cmp dword [rsp + 0x50], ebx
jbe 0x14005c2be
mov rdi, rax
cmp qword [rdi], rbx
je 0x14005c2b0
mov rax, qword [rdi]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov qword [rdx + 8], rcx
mov rax, qword [rdi]
mov qword [rax], rbx
mov rax, qword [rdi]
mov qword [rax + 8], rbx
mov rcx, qword [rdi]
test byte [rcx + 0x4c], 1
jne 0x14005c29b
test byte [rcx + 0x4c], 2
jne 0x14005c29b
mov eax, dword [0x1400a4054]
cmp dword [rcx + 0x18], eax
je 0x14005c29b
mov eax, ebx
jmp 0x14005c2a0
mov eax, 1
cmp eax, 1
jne 0x14005c2ab
dec dword [0x1400a3f0c]
call fcn.14005859c
inc r12d
add rdi, 8
cmp r12d, dword [rsp + 0x50]
jb 0x14005c25a
mov rax, qword [rsp + 0x88]
mov dword [rax], ebx
mov rcx, qword [rsp + 0x78]
call fcn.140076afc
cmp esi, ebx
je 0x14005c2de
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret