Function at 0x10059330
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f0411
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x102e5cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
lea esi, [edi + 8]
mov dword [edi], vtable.RtApi.0
lea ecx, [esi + 0x50]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0x101f3938
call fcn.10019810
mov eax, dword [esi]
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.1001ba20
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.1010d082
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005945e
push 1
mov byte [ebp - 4], 3
call fcn.100f8412
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 4], eax
jmp 0x10059460
xor ecx, ecx
mov dword [esi + 0x34], ecx
mov ecx, esi
call fcn.1001a650
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
xorps xmm0, xmm0
mov dword [ebp - 4], 4
movups xmmword [edi + 0xa0], xmm0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0xf
mov byte [edi + 0xa0], 0
lea esi, [edi + 0xb8]
mov dword [esi + 0x24], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
lea eax, [edi + 0xf8]
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], eax
mov dword [eax + 8], 0
mov dword [eax + 0x1c], 0
push 0x10059f40
push 0x10059150
push 2
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], 0
mov dword [eax + 0x88], 0
mov word [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov byte [eax + 0x94], 0
add eax, 0x98
push 0x2c
push eax
call fcn.1010de3c
mov ecx, edi
call sym.project.dll_protected:_void___thiscall_RtApi::clearStreamInfo_void_
lea eax, [edi + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1005957f
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
mov byte [edi + 0xe0], 1
mov eax, edi
mov dword [edi + 0xf0], 0x81
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret