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

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.140053ac0
nop
mov al, byte [rsp + 0xb8]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14005fbf5
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax + 0x28]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 1
jg 0x14005f95c
mov qword [rsp + 0x70], 0
jmp 0x14005f990
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
dec rax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax + 0x18]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
and eax, 0x1c0
cmp eax, 0x40
je 0x14005fa97
jmp 0x14005f9da
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x20], 0
jne 0x14005fa97
cmp qword [rsp + 0x30], 0
jle 0x14005fa97
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov al, byte [rcx + rax + 0x58]
mov byte [rsp + 0x25], al
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0x90], rax
mov dl, byte [rsp + 0x25]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x14005fa6e
mov dword [rsp + 0x38], 1
jmp 0x14005fa76
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x14005fa92
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x14005f9cd
cmp dword [rsp + 0x20], 0
jne 0x14005fb27
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0x98], rax
mov dl, byte [rsp + 0xe8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 0xffffffff
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x5c], eax
jne 0x14005fb03
mov dword [rsp + 0x3c], 1
jmp 0x14005fb0b
mov dword [rsp + 0x3c], 0
mov al, byte [rsp + 0x3c]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x27]
test eax, eax
je 0x14005fb27
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x14005fb36
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x20], 0
jne 0x14005fbf3
cmp qword [rsp + 0x30], 0
jle 0x14005fbf3
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov al, byte [rcx + rax + 0x58]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xa0], rax
mov dl, byte [rsp + 0x28]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], 0xffffffff
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x68], eax
jne 0x14005fbca
mov dword [rsp + 0x40], 1
jmp 0x14005fbd2
mov dword [rsp + 0x40], 0
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x29], al
movzx eax, byte [rsp + 0x29]
test eax, eax
je 0x14005fbee
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x14005fb29
jmp 0x14005fbf5
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
xor r8d, r8d
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xb0]
call fcn.140053a6c
mov rax, qword [rsp + 0xa8]
add rsp, 0xd8
ret