Function at 0x406f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b11c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x495400]
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 - 0x1a0], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 4], 0
cmp byte [0x496260], 0
jne 0x406f89
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x52
movups xmmword [ecx], xmm0
push str.You_need_to_run_the_KeyAuthApp.init____function_before_any_other_KeyAuth_functions
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.004111b0
call fcn.00408380
add esp, 0x18
lea ecx, [ebp - 0x8c]
call fcn.0041d270
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x18c], 0xe3fbe4ac
mov dword [ebp - 0x188], 0xf5f9fdeb
mov word [ebp - 0x184], 0xaf
mov byte [ebp - 0x182], 1
mov dword [ebp - 0x148], 0xe0ede5ac
mov dword [ebp - 0x144], 0x100b2eb
mov dword [ebp - 0x19c], 0xfee9f8ac
mov dword [ebp - 0x198], 0xffffe6fd
mov dword [ebp - 0x194], 0xa9f7fb
mov byte [ebp - 0x190], 1
mov dword [ebp - 0x180], 0xe4fbe3ac
mov dword [ebp - 0x17c], 0x100b2ea
mov dword [ebp - 0x160], 0xf4e9e0ac
mov word [ebp - 0x15c], 0xb3
mov byte [ebp - 0x15a], 1
mov dword [ebp - 0x170], 0xe8fcf2fe
mov dword [ebp - 0x16c], 0xf2f9e3b3
mov dword [ebp - 0x168], 0xf0e7fdf7
mov word [ebp - 0x164], 0x100
nop dword [eax]
lea eax, [ecx - 0x76]
xor byte [ebp + ecx - 0x160], al
inc ecx
cmp ecx, 5
jb 0x407050
push ecx
lea eax, [ebp - 0x15b]
mov byte [ebp - 0x15a], 0
push eax
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00410550
mov byte [ebp - 4], 2
cmp byte [ebp - 0x163], 0
je 0x4070a7
xor ecx, ecx
lea eax, [ecx - 0x76]
xor byte [ebp + ecx - 0x170], al
inc ecx
cmp ecx, 0xc
jb 0x407090
mov byte [ebp - 0x163], 0
push ecx
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x74]
call fcn.00410550
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x174]
lea ecx, [ebp - 0x1b8]
call fcn.004128b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x407116
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40710c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 0xf
jbe 0x407154
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40714a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0xf
mov edx, dword [ebp - 0x1a8]
cmova ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1a4]
mov edi, dword [ebp + 0x1c]
sub eax, edx
mov dword [ebp - 0x178], edx
push edi
push ecx
cmp edi, eax
ja 0x4071be
cmp dword [ebp - 0x1a4], 0xf
lea esi, [ebp - 0x1b8]
lea eax, [edx + edi]
cmova esi, dword [ebp - 0x1b8]
mov dword [ebp - 0x1a8], eax
lea eax, [esi + edx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x178]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea eax, [ebp - 0x1b8]
jmp 0x4071d0
push dword [ebp - 0x174]
lea ecx, [ebp - 0x1b8]
push edi
call fcn.00411050
movups xmm0, xmmword [eax]
mov edi, 0x3c00
or edi, 0x4000
movups xmmword [ebp - 0x1d0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x23c]
call fcn.00406360
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1d8], ecx
mov ecx, dword [ebp - 0x8c]
cmova eax, ecx
mov dword [ebp - 0x158], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x178], ecx
sub eax, edx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x150], edx
cmp ecx, eax
ja 0x4072a7
cmp dword [esi + 0x14], 0xf
lea eax, [edx + ecx]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x1d4], esi
jbe 0x407280
mov eax, dword [esi]
mov dword [ebp - 0x1d4], eax
push ecx
push dword [ebp - 0x158]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x150]
add esp, 0xc
add eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x7c]
mov byte [eax + ecx], 0
jmp 0x4072d3
push ecx
push dword [ebp - 0x158]
push dword [ebp - 0x174]
push ecx
mov ecx, esi
call fcn.00411050
mov esi, eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x178], eax
movups xmm0, xmmword [esi]
or edi, 0x8000
movups xmmword [ebp - 0x284], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x274], xmm0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x224]
call fcn.00406e00
add esp, 4
mov ecx, eax
mov esi, dword [ebp - 0x1a0]
mov byte [ebp - 4], 8
lea eax, [esi + 0x1b4]
push eax
call fcn.0040d3a0
or edi, 0x10000
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x26c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x25c], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x20c]
call fcn.00406360
add esp, 4
push esi
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040d3a0
or edi, 0x20000
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x254], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x244], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x1f4]
call fcn.00406560
add esp, 4
mov ecx, eax
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040d3a0
or edi, 0x40000
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x64], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1e0]
cmp ecx, 0xf
jbe 0x407453
mov edx, dword [ebp - 0x1f4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407449
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0xf
mov byte [ebp - 0x1f4], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x240]
cmp ecx, 0xf
jbe 0x4074ac
mov edx, dword [ebp - 0x254]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4074a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1f8]
cmp ecx, 0xf
jbe 0x4074ea
mov edx, dword [ebp - 0x20c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4074e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0xf
mov byte [ebp - 0x20c], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x258]
cmp ecx, 0xf
jbe 0x407543
mov edx, dword [ebp - 0x26c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407539
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xf
jbe 0x407581
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407577
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x270]
cmp ecx, 0xf
jbe 0x4075da
mov edx, dword [ebp - 0x284]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4075d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x228]
cmp ecx, 0xf
jbe 0x407618
mov edx, dword [ebp - 0x23c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40760e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 0xf
jbe 0x40766d
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407663
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40769d
push ecx
push edx
call fcn.00479834
add esp, 8
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x1a4]
cmp ecx, 0xf
jbe 0x4076ad
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4076a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4076a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x1a8], 0
lea eax, [esi + 0x60]
mov dword [ebp - 0x150], esp
mov ecx, esp
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
push eax
call fcn.0040d550
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.0040d550
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.00407e90
add esp, 0x30
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0x18
mov eax, esp
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x5c]
mov dword [eax + 0x24], 0
call fcn.004106d0
add esp, 0x30
mov byte [ebp - 4], 0x19
xor ecx, ecx
mov dword [ebp - 0x148], 0xfeffeee7
mov dword [ebp - 0x144], 0xf5e8ef
mov byte [ebp - 0x140], 1
lea eax, [ecx - 0x76]
xor byte [ebp + ecx - 0x148], al
inc ecx
cmp ecx, 7
jb 0x407740
push ecx
lea eax, [ebp - 0x141]
mov byte [ebp - 0x140], 0
push eax
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00410550
or edi, 0xc0
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040c8e0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.004155d0
or edi, 0x100
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x1a4]
cmp ecx, 0xf
jbe 0x4077db
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4077d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4077d1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
add esp, 8
push 0xb0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x1a8], 0
push 0
push eax
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x13c], 0x48de74
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x12c], 0x48de4c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 0x1d
or edi, 0x200
lea ecx, [ebp - 0x13c]
push eax
mov dword [ebp - 0x1dc], edi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 0x1e
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x140], eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
push 0x20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00412820
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
lea esi, [eax + 0x20]
mov eax, dword [ebp - 0x1c]
movups xmmword [eax + 0x10], xmm0
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x20
mov edi, dword [ebp - 0x1c]
sub esi, edi
cmp dword [ebp - 0x20], 0xf
mov edx, dword [ecx + 0x1dc]
cmova eax, dword [ebp - 0x34]
add ecx, 0x1cc
cmp dword [ecx + 0x14], 0xf
jbe 0x40791f
mov ecx, dword [ecx]
push esi
push edi
push dword [ebp - 0x24]
push eax
call fcn.0041c720
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x150], eax
cmp edi, eax
je 0x4079a4
nop dword [eax]
mov al, byte [edi]
lea ecx, [ebp - 0x12c]
push 0x401d10
mov byte [ebp - 0x149], al
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
push 0
push 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
movzx eax, byte [ebp - 0x149]
add esp, 0x18
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
inc edi
cmp edi, dword [ebp - 0x150]
jne 0x407940
cmp dword [0x495490], 0xf
lea eax, [ebp - 0x1d0]
mov esi, 0x49547c
lea ecx, [ebp - 0x13c]
cmova esi, dword [0x49547c]
push eax
call fcn.0040afc0
cmp dword [eax + 0x14], 0xf
jbe 0x4079d1
mov eax, dword [eax]
movd xmm1, dword [esi]
movd xmm0, dword [eax]
mov ecx, dword [ebp - 0x1bc]
punpcklbw xmm0, xmm0
punpcklbw xmm1, xmm1
punpcklwd xmm0, xmm0
punpcklwd xmm1, xmm1
psrad xmm0, 0x18
psrad xmm1, 0x18
xorps xmm1, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
orps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
orps xmm1, xmm0
movd esi, xmm1
cmp ecx, 0xf
jbe 0x407a4c
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407a42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407a42
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
add esp, 8
test esi, esi
je 0x407a96
sub esp, 0x18
mov eax, closesocket
mov ecx, esp
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x3c]
sub eax, edx
cmp eax, 0x6b
jb 0x407e7d
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
push edx
cmova eax, dword [ebp - 0x4c]
push eax
push 0x6b
push str.Signature_checksum_failed._Request_was_tampered_with_or_session_ended_most_likely.__echo:__echo_Message:
push ecx
push dword [ebp - 0x174]
call fcn.00412a90
call fcn.00408380
add esp, 0x18
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x170]
call fcn.0040cc40
push str.success
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x21
call fcn.004101a0
mov edi, dword [ebp - 0x1a0]
xor edx, edx
push str.message
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
mov al, byte [ecx]
lea ecx, [ebp - 0x170]
mov byte [edi + 0x198], al
call fcn.004101a0
cmp byte [eax], 3
jne 0x407aec
mov eax, dword [eax + 8]
jmp 0x407aee
xor eax, eax
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x407af8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [edi + 0x19c]
call fcn.0040fc00
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x20
call fcn.0040cc20
mov dword [ebp - 0x148], 0xeeeffef9
xor ecx, ecx
mov dword [ebp - 0x144], 0xe3fceb
mov byte [ebp - 0x140], 1
lea eax, [ecx - 0x76]
xor byte [ebp + ecx - 0x148], al
inc ecx
cmp ecx, 7
jb 0x407b33
push ecx
lea eax, [ebp - 0x141]
mov byte [ebp - 0x140], 0
push eax
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00410550
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 0x22
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040c8e0
xor edx, edx
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
mov al, byte [ecx]
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x1bc]
mov byte [ebp - 0x149], al
cmp ecx, 0xf
jbe 0x407bd0
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407bc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407bc0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
mov al, byte [ebp - 0x149]
add esp, 8
test al, al
je 0x407c88
mov dword [ebp - 0x158], 0xe2eae5e3
xor ecx, ecx
mov word [ebp - 0x154], 0x100
nop dword [eax]
lea eax, [ecx - 0x76]
xor byte [ebp + ecx - 0x158], al
inc ecx
cmp ecx, 4
jb 0x407bf0
push ecx
lea eax, [ebp - 0x154]
mov byte [ebp - 0x153], 0
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00410550
sub esp, 0x10
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x1d0]
mov esi, esp
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040c8e0
push eax
mov ecx, esi
call fcn.0040cc40
mov ecx, edi
call fcn.00403020
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 0xf
jbe 0x407c88
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407c7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407c7e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
add esp, 8
mov esi, dword [ebp - 0x174]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.0040d550
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x407ce2
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x407cc3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e4e
push edx
push ecx
call fcn.00479834
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x140], eax
lea ecx, [ebp - 0x124]
call fcn.0040c500
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x407d60
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407d56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e4e
push ecx
push edx
call fcn.00479834
add esp, 8
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.0040cc20
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x407dae
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407da4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e4e
push ecx
push edx
call fcn.00479834
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0xf
jbe 0x407df0
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407de6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e4e
push ecx
push edx
call fcn.00479834
add esp, 8
mov eax, dword [ebp - 0x1d8]
cmp eax, 0xf
jbe 0x407e28
mov edx, dword [ebp - 0x178]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x407e1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e4e
push ecx
push edx
call fcn.00479834
add esp, 8
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xf
jbe 0x407e5e
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407e54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407e54
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479834
add esp, 8
mov eax, esi
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.004794f0
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00401510
int3