Function at 0x1001c850
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058742
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x10079214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push 0x180
push 0x40
push 0x8101
push ebx
push edi
mov dword [ebp - 0x2c], 0
call fcn.10039cb0
add esp, 0x14
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1001ca8d
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xcc], 0x1005ee34
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc8]
push 0
push 0
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x2c], 1
call fcn.10015be0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xcc]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xd0], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xc8], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1002db0a
mov esi, eax
add esp, 4
test esi, esi
je 0x1001c954
push 1
call fcn.100204b8
add esp, 4
mov dword [esi + 4], eax
jmp 0x1001c956
xor esi, esi
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x94], esi
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0xc8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 4
mov dword [ebp - 4], 5
lea eax, [ebp - 0xcc]
push 0x1005ef9c
push dword [ebp - 0x30]
push str._error.__
push ebx
push str.open
push eax
call fcn.10015550
add esp, 8
push eax
call fcn.10015550
add esp, 8
push eax
call fcn.10015550
add esp, 8
mov ecx, eax
call fcn.1001a010
push eax
call fcn.10015550
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xcc]
push eax
call fcn.1001cd10
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x1001ca68
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.1000ee00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10017390
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x1001caa3
push 2
push 0
push eax
call fcn.1003a149
add esp, 0xc
jmp 0x1001caa6
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002deb9
mov esp, ebp
pop ebp
ret 4