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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1401270c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x140005a04
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
test rax, rax
jle 0x140005b15
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp rax, qword [rsp + 0x48]
jle 0x140005b15
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
sub rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
jmp 0x140005b1e
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x150]
call fcn.14009d960
nop
movzx eax, byte [rsp + 0x158]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
movzx eax, al
test eax, eax
jne 0x140005b66
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140005ebb
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
and eax, 0x1c0
cmp eax, 0x40
je 0x140005cc0
jmp 0x140005bbb
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jle 0x140005cc0
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x58]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x25]
mov byte [rsp + 0x26], al
movzx edx, byte [rsp + 0x26]
mov rcx, qword [rsp + 0xe8]
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 + 0x5c], eax
mov dword [rsp + 0x58], 0xffffffff
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x60], eax
jne 0x140005c91
mov dword [rsp + 0x38], 1
jmp 0x140005c99
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x27]
movzx eax, al
test eax, eax
je 0x140005cbb
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140005cc0
jmp 0x140005bae
cmp dword [rsp + 0x20], 0
jne 0x140005d51
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.MSVCP140.dll_public:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x108], rax
je 0x140005d51
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140005e70
jmp 0x140005d6b
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jle 0x140005e70
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
movzx eax, byte [rax + 0x58]
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x29], al
movzx edx, byte [rsp + 0x29]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x68], 0xffffffff
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x70], eax
jne 0x140005e41
mov dword [rsp + 0x3c], 1
jmp 0x140005e49
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x2a], al
movzx eax, byte [rsp + 0x2a]
movzx eax, al
test eax, eax
je 0x140005e6b
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140005e70
jmp 0x140005d5e
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x28], 0
jmp 0x140005ebb
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x138], rax
xor r8d, r8d
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x150]
call fcn.14009d900
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400e4260
add rsp, 0x178
ret