Function at 0x5e35b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ae59d
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x210], ecx
xor eax, eax
mov dword [ebp - 0x1a0], eax
mov esi, dword [ecx + 4]
mov dword [ebp - 0x1b0], eax
cmp esi, dword [ecx + 8]
je 0x5e369b
nop dword [eax]
mov edi, dword [esi + 4]
test edi, edi
je 0x5e360e
lock inc dword [edi + 4]
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x1a4], eax
mov dword [eax + 0xc], 0
lea edx, [eax + 0x64]
cmp dword [eax + 0x78], 8
jb 0x5e3629
mov edx, dword [eax + 0x64]
xor ecx, ecx
mov dword [eax + 0x74], 0
mov word [edx], cx
mov edx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x7c]
call fcn.00413a10
mov ecx, dword [ebp - 0x1a4]
add esp, 4
mov eax, dword [ecx + 0x7c]
mov dword [ecx + 0x80], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x5e3682
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x5e3682
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x5e3682
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x210]
add esi, 8
mov dword [ebp - 4], 0xffffffff
cmp esi, dword [ecx + 8]
jne 0x5e3600
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push edx
movq qword [ebp - 0x2c], xmm0
call dword [eax + 0xc]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1dc], eax
cmp ecx, eax
je 0x5e3bfa
add ecx, 4
mov dword [ebp - 0x1a4], ecx
nop word [eax + eax]
mov edi, dword [ecx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x1ac], edi
test edi, edi
je 0x5e3700
lock inc dword [edi + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x1ac], edi
mov eax, dword [ecx - 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
add eax, 0x4c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x22c]
movlpd qword [ebp - 0x18], xmm0
call fcn.00404120
mov esi, dword [ebp - 0x1b0]
or esi, 1
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1a8], esi
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.005d5870
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.00404490
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e3b80
push 0xb0
mov byte [eax + 0xc], 1
lea eax, [ebp - 0x19c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x19c], 0x7d6f90
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x18c], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 8
or esi, 2
lea ecx, [ebp - 0x19c]
push eax
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x19c], 0x7c81a4
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1a0], eax
lea ecx, [ebp - 0x184]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0x184], 0x7c8164
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov byte [ebp - 4], 0xa
xor ecx, ecx
mov dword [ebp - 0x1c0], 5
mov dword [ebp - 0x1bc], 0xd200ec
mov dword [ebp - 0x1b8], 0x9600df
mov dword [ebp - 0x1b4], 0xae008d
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1bc], ax
inc ecx
mov eax, dword [ebp - 0x1c0]
cmp ecx, eax
jb 0x5e3850
xor ecx, ecx
mov word [ebp + eax*2 - 0x1bc], cx
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00404740
mov ecx, dword [ebp - 0x18]
add esp, 8
add ecx, 0x1c
mov esi, eax
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00404120
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
push dword [ebp - 0x21c]
cmovae ecx, dword [ebp - 0x22c]
push ecx
push esi
call fcn.00404c80
mov edx, 6
mov dword [ebp - 0x1d0], 0x8a0085
add esp, 0xc
mov dword [ebp - 0x1d4], edx
mov esi, eax
mov dword [ebp - 0x1cc], 0xc800c2
mov dword [ebp - 0x1c8], 0x8e0097
xor ecx, ecx
mov dword [ebp - 0x1c4], 0xaf
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1d0], ax
inc ecx
mov edx, dword [ebp - 0x1d4]
cmp ecx, edx
jb 0x5e3900
xor eax, eax
mov word [ebp + edx*2 - 0x1d0], ax
lea eax, [ebp - 0x1d0]
push eax
push esi
call fcn.00404740
mov ecx, dword [ebp - 0x18]
add esp, 8
add ecx, 0x4c
mov esi, eax
push ecx
lea ecx, [ebp - 0x244]
call fcn.00404120
mov eax, dword [ebp - 0x1a8]
or eax, 0xe
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x230], 8
push dword [ebp - 0x234]
cmovae eax, dword [ebp - 0x244]
push eax
push esi
call fcn.00404c80
add esp, 0xc
mov dword [ebp - 0x200], 0xf
mov edx, eax
mov dword [ebp - 0x1fc], 0xce0089
mov dword [ebp - 0x1f8], 0xd800ce
xor ecx, ecx
mov dword [ebp - 0x1f4], 0xcd00c8
mov dword [ebp - 0x1f0], 0xd500db
mov dword [ebp - 0x1ec], 0x9200d5
mov dword [ebp - 0x1e8], 0xcd00d1
mov dword [ebp - 0x1e4], 0xff0095
mov dword [ebp - 0x1e0], 0xb800f3
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1fc], ax
inc ecx
mov eax, dword [ebp - 0x200]
cmp ecx, eax
jb 0x5e39e0
xor ecx, ecx
mov word [ebp + eax*2 - 0x1fc], cx
lea eax, [ebp - 0x1fc]
push eax
push edx
call fcn.00404740
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.00404490
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xa
call fcn.00404490
mov edx, dword [0x83ff50]
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x5e3a78
push 0x20
call fcn.0076e8c3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x1c], edx
xor eax, eax
mov dword [ebp - 0x214], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [0x83ff50], edx
lea eax, [ebp - 0xec]
push eax
call fcn.005e46c0
mov dword [ebp - 0x1a8], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x1a0], ecx
xor ecx, ecx
test esi, esi
je 0x5e3abd
mov edx, dword [ebp - 0x1a0]
mov edi, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5e3aa3
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1a0]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x2ec]
push eax
call fcn.005e0770
mov dword [ebp - 0x214], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x1a8], ecx
xor ecx, ecx
test esi, esi
je 0x5e3b0e
mov edx, dword [ebp - 0x1a8]
mov edi, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5e3af4
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1a8]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x19c]
push ecx
push dword [ebp - 0x1a0]
mov ecx, edx
push 0x2b8
push eax
push 1
call fcn.00469f50
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x19c], 0x7c81a4
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1a0], eax
lea ecx, [ebp - 0x184]
call fcn.004073e0
lea ecx, [ebp - 0x17c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5e3bac
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x5e3bac
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x5e3bac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0xe
test edi, edi
je 0x5e3bd5
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x5e3bd5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x5e3bd5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a4]
add ecx, 8
mov dword [ebp - 0x1a4], ecx
lea eax, [ecx - 4]
cmp eax, dword [ebp - 0x1dc]
jne 0x5e36e0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x214], eax
cmp ecx, eax
je 0x5e4129
add ecx, 4
mov dword [ebp - 0x1a8], ecx
mov edi, dword [ecx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test edi, edi
je 0x5e3c28
lock inc dword [edi + 4]
mov edi, dword [ecx]
mov eax, dword [ecx - 4]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xf
call fcn.00451ae0
mov ecx, dword [ebp - 0x1a4]
mov esi, eax
add ecx, 0x1c
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00404120
mov eax, dword [ebp - 0x1b0]
or eax, 0x10
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
call fcn.0058b5b0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 0x1d5], al
mov byte [ebp - 4], 0xf
call fcn.00404490
cmp byte [ebp - 0x1d5], 0
je 0x5e40db
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x210]
push 0xffffffffffffffff
mov byte [eax + 0xc], 1
lea eax, [ebp - 0x18]
push eax
call fcn.005e4b40
push 0xb0
lea eax, [ebp - 0xe4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe4], 0x7d6f90
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xd4], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xe4]
mov eax, dword [ebp - 0x1b0]
or eax, 0x20
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], 0x7c81a4
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xcc], 0x7c8164
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 0x13
xor ecx, ecx
mov dword [ebp - 0x1c0], 5
mov dword [ebp - 0x1bc], 0xd200ec
mov dword [ebp - 0x1b8], 0x9600df
mov dword [ebp - 0x1b4], 0xae008d
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1bc], ax
inc ecx
mov eax, dword [ebp - 0x1c0]
cmp ecx, eax
jb 0x5e3da0
xor ecx, ecx
mov word [ebp + eax*2 - 0x1bc], cx
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00404740
mov edi, dword [ebp - 0x18]
add esp, 8
mov esi, eax
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00404120
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x244]
cmp dword [ebp - 0x230], 8
push dword [ebp - 0x234]
cmovae ecx, dword [ebp - 0x244]
push ecx
push esi
call fcn.00404c80
mov edx, 6
mov dword [ebp - 0x1d0], 0x8a0085
add esp, 0xc
mov dword [ebp - 0x1d4], edx
mov esi, eax
mov dword [ebp - 0x1cc], 0xc800c2
mov dword [ebp - 0x1c8], 0x8e0097
xor ecx, ecx
mov dword [ebp - 0x1c4], 0xaf
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1d0], ax
inc ecx
mov edx, dword [ebp - 0x1d4]
cmp ecx, edx
jb 0x5e3e50
xor eax, eax
mov word [ebp + edx*2 - 0x1d0], ax
lea eax, [ebp - 0x1d0]
push eax
push esi
call fcn.00404740
add esp, 8
lea ecx, [edi + 0x4c]
mov esi, eax
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00404120
mov eax, dword [ebp - 0x1dc]
or eax, 0xe0
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
push dword [ebp - 0x21c]
cmovae eax, dword [ebp - 0x22c]
push eax
push esi
call fcn.00404c80
mov edx, 0x14
mov dword [ebp - 0x208], 0xce0089
add esp, 0xc
mov dword [ebp - 0x20c], edx
mov esi, eax
mov dword [ebp - 0x204], 0xd800ce
mov dword [ebp - 0x200], 0xcd00c8
xor ecx, ecx
mov dword [ebp - 0x1fc], 0xd500db
mov dword [ebp - 0x1f8], 0x9200d5
mov dword [ebp - 0x1f4], 0xcd00d1
mov dword [ebp - 0x1f0], 0xfd0095
mov dword [ebp - 0x1ec], 0xc100d2
mov dword [ebp - 0x1e8], 0xd500ce
mov dword [ebp - 0x1e4], 0xd800c9
mov dword [ebp - 0x1e0], 0xbd
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x208], ax
inc ecx
mov edx, dword [ebp - 0x20c]
cmp ecx, edx
jb 0x5e3f50
xor eax, eax
mov word [ebp + edx*2 - 0x208], ax
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00404740
add esp, 8
lea ecx, [ebp - 0x22c]
call fcn.00404490
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0x13
call fcn.00404490
mov edx, dword [0x83ff50]
mov dword [ebp - 0x1a0], edx
test edx, edx
jne 0x5e3fee
push 0x20
call fcn.0076e8c3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x1a0], edx
xor eax, eax
mov dword [ebp - 0x1dc], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [0x83ff50], edx
lea eax, [ebp - 0x3a4]
push eax
call fcn.005e4840
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x1ac], eax
test esi, esi
je 0x5e402d
mov edx, eax
nop
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5e4010
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1ac]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x2ec]
push eax
call fcn.005e0770
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x1a4], eax
test esi, esi
je 0x5e406f
mov edx, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5e4052
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a4]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xe4]
push ecx
push dword [ebp - 0x1ac]
mov ecx, edx
push 0x2c4
push eax
push 1
call fcn.00469f50
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], 0x7c81a4
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xcc]
call fcn.004073e0
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 0x16
test edi, edi
je 0x5e4104
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x5e4104
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x5e4104
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x1a8]
add ecx, 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x1a8], ecx
lea eax, [ecx - 4]
cmp eax, dword [ebp - 0x214]
jne 0x5e3c14
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x210]
mov eax, dword [esi + 0x44]
cmp dword [eax + 8], 1
jne 0x5e4659
mov edx, dword [0x83ff58]
test edx, edx
jne 0x5e4181
push 0x10
call fcn.0076e8c3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x1dc], edx
mov dword [0x83ff58], edx
movups xmmword [edx], xmm0
mov word [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov ecx, dword [ebp - 0x2c]
cmp byte [edx], 0
je 0x5e4659
mov eax, dword [esi + 0x44]
mov ecx, edx
push dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0058f220
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1dc], eax
cmp ecx, eax
je 0x5e4659
lea edi, [ecx + 4]
mov dword [ebp - 0x1a8], edi
nop dword [eax + eax]
mov esi, dword [edi]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test esi, esi
je 0x5e41d4
lock inc dword [esi + 4]
mov esi, dword [edi]
mov eax, dword [edi - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0x22
mov al, byte [eax + 0xc]
test al, al
je 0x5e4611
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20]
push 0xfffffffffffffffd
push eax
call fcn.005e4b40
push 0xb0
lea eax, [ebp - 0xe4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe4], 0x7d6f90
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xd4], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0xcc]
mov edi, dword [ebp - 0x1b0]
lea ecx, [ebp - 0xe4]
push 0
or edi, 0x1000
push eax
mov dword [ebp - 0x1a0], edi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 0x24
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], 0x7c81a4
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xcc], 0x7c8164
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 0x25
xor eax, eax
mov dword [ebp - 0x1c0], 5
mov dword [ebp - 0x1bc], 0xd200ec
mov dword [ebp - 0x1b8], 0x9600df
mov dword [ebp - 0x1b4], 0xae008d
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x1bc], cx
inc eax
mov ecx, dword [ebp - 0x1c0]
cmp eax, ecx
jb 0x5e42e1
xor eax, eax
mov word [ebp + ecx*2 - 0x1bc], ax
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00404740
mov ecx, dword [ebp - 0x20]
add esp, 8
add ecx, 0x1c
mov esi, eax
push ecx
lea ecx, [ebp - 0x244]
call fcn.00404120
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x244]
cmp dword [ebp - 0x230], 8
push dword [ebp - 0x234]
cmovae ecx, dword [ebp - 0x244]
push ecx
push esi
call fcn.00404c80
mov edx, 6
mov dword [ebp - 0x1d0], 0x8a0085
add esp, 0xc
mov dword [ebp - 0x1d4], edx
mov esi, eax
mov dword [ebp - 0x1cc], 0xc800c2
mov dword [ebp - 0x1c8], 0x8e0097
xor ecx, ecx
mov dword [ebp - 0x1c4], 0xaf
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1d0], ax
inc ecx
mov edx, dword [ebp - 0x1d4]
cmp ecx, edx
jb 0x5e4390
xor eax, eax
mov word [ebp + edx*2 - 0x1d0], ax
lea eax, [ebp - 0x1d0]
push eax
push esi
call fcn.00404740
mov ecx, dword [ebp - 0x20]
add esp, 8
add ecx, 0x4c
mov esi, eax
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00404120
or edi, 0x6000
mov dword [ebp - 0x1b0], edi
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
push dword [ebp - 0x21c]
cmovae eax, dword [ebp - 0x22c]
push eax
push esi
call fcn.00404c80
add esp, 0xc
mov dword [ebp - 0x204], 0x11
mov edx, eax
mov dword [ebp - 0x200], 0xce0089
mov dword [ebp - 0x1fc], 0xd800ce
xor ecx, ecx
mov dword [ebp - 0x1f8], 0xcd00c8
mov dword [ebp - 0x1f4], 0xd500db
mov dword [ebp - 0x1f0], 0x9200d5
mov dword [ebp - 0x1ec], 0xcd00d1
mov dword [ebp - 0x1e8], 0xf50095
mov dword [ebp - 0x1e4], 0xdc00d8
mov dword [ebp - 0x1e0], 0xba00dc
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x200], ax
inc ecx
mov eax, dword [ebp - 0x204]
cmp ecx, eax
jb 0x5e4480
xor ecx, ecx
mov word [ebp + eax*2 - 0x200], cx
lea eax, [ebp - 0x200]
push eax
push edx
call fcn.00404740
add esp, 8
lea ecx, [ebp - 0x22c]
call fcn.00404490
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0x25
call fcn.00404490
mov edx, dword [0x83ff50]
mov dword [ebp - 0x1a0], edx
test edx, edx
jne 0x5e451e
push 0x20
call fcn.0076e8c3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x1a0], edx
xor eax, eax
mov dword [ebp - 0x214], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [0x83ff50], edx
lea eax, [ebp - 0x3a4]
push eax
call fcn.005e49c0
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x1ac], eax
test esi, esi
je 0x5e455d
mov edx, eax
nop
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5e4540
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1ac]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x2ec]
push eax
call fcn.005e0770
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x1a4], eax
test esi, esi
je 0x5e459f
mov edx, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5e4582
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a4]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xe4]
push ecx
push dword [ebp - 0x1ac]
mov ecx, edx
push 0x2ec
push eax
push 1
call fcn.00469f50
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], 0x7c81a4
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xcc]
call fcn.004073e0
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1a8]
mov byte [ebp - 4], 0x28
test esi, esi
je 0x5e463a
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x5e463a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x5e463a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x1a8], edi
lea eax, [edi - 4]
cmp eax, dword [ebp - 0x1dc]
jne 0x5e41c0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5e469e
mov edx, dword [ebp - 0x28]
push ecx
call fcn.00413a10
mov ecx, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x2c]
sub ecx, edx
and ecx, 0xfffffff8
mov eax, edx
cmp ecx, 0x1000
jb 0x5e4694
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5e4694
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0076e8f3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret