Function at 0x10006060
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b1ad
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push esi
mov eax, dword [0x10030a98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp dword [0x10030f24], 1
jne 0x100062ac
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xc0], 0x1001c8f0
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0xbc]
mov ecx, eax
mov dword [ebp - 0xc4], eax
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
mov dword [ebp - 0xbc], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x7f], 0
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x10030dec]
mov ecx, dword [0x10030df0]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x84], 0
push 0x40
push 0xa
push 0x1001e148
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.100058e0
test eax, eax
jne 0x10006191
push eax
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 4
push 0x1001e15c
push eax
call fcn.10001050
push dword [0x10030e74]
lea eax, [ebp - 0xc0]
push eax
call fcn.10001050
add esp, 0x10
cmp dword [ebp - 0x70], 0
je 0x10006250
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x80]
cmp dword [eax], ecx
jne 0x100061ef
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xa0]
mov dword [eax], ecx
mov eax, dword [ebp - 0x90]
mov dword [eax], edx
lea esi, [ebp - 0xbc]
mov ecx, esi
call fcn.10001d20
push dword [ebp - 0x70]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.ucrtbased.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x74], cl
mov byte [ebp - 0x7f], cl
cmovne esi, ecx
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x10030dec]
mov ecx, dword [0x10030df0]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x84], 0
test esi, esi
jne 0x100062a1
jmp 0x10006286
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x7f], 0
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x10030dec]
mov ecx, dword [0x10030df0]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xc0]
call fcn.10001ab0
mov eax, dword [0x10030f28]
cmp eax, 1
je 0x100062ed
cmp eax, 3
je 0x100062ed
cmp eax, 4
je 0x100062ed
push 0
cmp eax, 2
jne 0x100062e7
push 0
push 0
push 0x10006390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x100063c0
jmp 0x100062d0