Function at 0x140047de0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor esi, esi
mov dword [rsp + 0x20], esi
cmp qword [0x14014e1d8], rsi
jne 0x140048265
lea rcx, [rsp + 0x70]
call fcn.140047b80
nop
lea r8, str._krt.dll
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140017700
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
jb 0x140047e68
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140047e78
cmp qword [rsp + 0x60], 0
je 0x140047e78
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140047e7b
mov rax, rsi
mov qword [0x14014e1d8], rax
test rax, rax
jne 0x140048103
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
mov rbx, qword [rbp - 0x80]
lea rdx, [rbx + 0xc]
lea rcx, [rsp + 0x28]
call fcn.140018630
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.1400073c0
mov r8d, recv
lea rdx, str._PanoKrt.dll
lea rcx, [rsp + 0x28]
call fcn.1400073c0
lea rcx, [rsp + 0x50]
call fcn.140007080
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140007080
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
jb 0x140047f46
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140047f56
cmp qword [rsp + 0x60], 0
je 0x140047f56
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140047f59
mov rax, rsi
mov qword [0x14014e1d8], rax
test rax, rax
jne 0x140048103
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140084bd0
cmp eax, 2
jl 0x1400480c0
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call fcn.1400b93c0
lea rax, [0x1400fdef8]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x20], 4
lea r14, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x18], r14
mov dword [rbp + 0x14], 0x78
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.1400075d0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rsi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rbp - 0x70]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.load_krt_failed__err1
call fcn.14000ae60
mov rcx, rax
mov edx, edi
call fcn.14000e310
mov rcx, rax
lea rdx, str.__err2
call fcn.14000ae60
mov rcx, rax
mov edx, ebx
call fcn.14000e310
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x68]
call fcn.140009e60
nop
lea rdx, [rsp + 0x28]
mov ecx, 2
call fcn.140084ea0
nop
lea rcx, [rsp + 0x28]
call fcn.140007080
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rsi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140008ea0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r14
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140097eb0
nop
lea rcx, [rsp + 0x50]
call fcn.140007080
nop
lea rcx, [rsp + 0x70]
call fcn.140007080
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14009ab00
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, str.wgc_create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014e1e0], rax
mov rcx, qword [0x14014e1d8]
test rcx, rcx
jne 0x14004814e
mov qword [0x14014e1d0], rsi
mov qword [0x14014e200], rsi
mov qword [0x14014e1f0], rsi
mov qword [0x14014e1e8], rsi
mov qword [0x14014e1f8], rsi
jmp 0x140048242
lea rdx, str.wgc_supported
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014e1d0], rax
mov rcx, qword [0x14014e1d8]
test rcx, rcx
jne 0x14004818f
mov qword [0x14014e200], rsi
mov qword [0x14014e1f0], rsi
mov qword [0x14014e1e8], rsi
mov qword [0x14014e1f8], rsi
jmp 0x140048242
lea rdx, str.wgc_cursor_supported
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014e200], rax
mov rcx, qword [0x14014e1d8]
test rcx, rcx
jne 0x1400481c6
mov qword [0x14014e1f0], rsi
mov qword [0x14014e1e8], rsi
mov qword [0x14014e1f8], rsi
jmp 0x140048242
lea rdx, str.wgc_border_supported
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014e1f0], rax
mov rcx, qword [0x14014e1d8]
test rcx, rcx
jne 0x1400481f6
mov qword [0x14014e1e8], rsi
mov qword [0x14014e1f8], rsi
jmp 0x140048242
lea rdx, str.wgc_capturable
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014e1e8], rax
mov rcx, qword [0x14014e1d8]
test rcx, rcx
jne 0x14004821f
mov qword [0x14014e1f8], rsi
jmp 0x140048242
lea rdx, str.wgc_logfunc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014e1f8], rax
test rax, rax
je 0x140048242
lea rcx, [0x1400482c0]
call rax
nop
lea rcx, [rsp + 0x50]
call fcn.140007080
nop
lea rcx, [rsp + 0x70]
call fcn.140007080
cmp qword [0x14014e1d8], 0
je 0x1400480d5
cmp qword [0x14014e1e0], 0
je 0x1400480d5
cmp qword [0x14014e1d0], 0
je 0x1400480d5
cmp qword [0x14014e1e8], 0
je 0x1400480d5
cmp qword [0x14014e200], 0
je 0x1400480d5
cmp qword [0x14014e1f0], 0
je 0x1400480d5
mov al, 1
jmp 0x1400480d7