Function at 0x4070e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479980
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x493400]
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 - 0x1d0], ecx
mov dword [ebp - 0x174], 0
mov dword [ebp - 4], 0
cmp byte [0x494170], 0
jne 0x40715a
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.00411290
call fcn.00408570
add esp, 0x18
lea ecx, [ebp - 0x8c]
call fcn.0041d200
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x18c], 0xb0aab3fd
mov dword [ebp - 0x188], 0x868892ba
mov word [ebp - 0x184], 0xde
mov byte [ebp - 0x182], 1
mov dword [ebp - 0x148], 0xb3bcb2fd
mov dword [ebp - 0x144], 0x100ddba
mov dword [ebp - 0x19c], 0xadb8affd
mov dword [ebp - 0x198], 0x8c8e89ac
mov dword [ebp - 0x194], 0xd8808a
mov byte [ebp - 0x190], 1
mov dword [ebp - 0x180], 0xb7aab4fd
mov dword [ebp - 0x17c], 0x100ddbb
mov dword [ebp - 0x160], 0xa7b8b7fd
mov word [ebp - 0x15c], 0xe2
mov byte [ebp - 0x15a], 1
mov dword [ebp - 0x170], 0xbbada5af
mov dword [ebp - 0x16c], 0x81888ce2
mov dword [ebp - 0x168], 0x83968a86
mov word [ebp - 0x164], 0x100
nop dword [eax]
lea eax, [ecx - 0x25]
xor byte [ebp + ecx - 0x160], al
inc ecx
cmp ecx, 5
jb 0x407220
push ecx
lea eax, [ebp - 0x15b]
mov byte [ebp - 0x15a], 0
push eax
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00410720
mov byte [ebp - 4], 2
cmp byte [ebp - 0x163], 0
je 0x407277
xor ecx, ecx
lea eax, [ecx - 0x25]
xor byte [ebp + ecx - 0x170], al
inc ecx
cmp ecx, 0xc
jb 0x407260
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.00410720
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x150]
lea ecx, [ebp - 0x1b4]
call fcn.00412990
mov byte [ebp - 4], 2
mov edi, 0x3c00
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x4072eb
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4072e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 0xf
jbe 0x407329
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40731f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
mov ecx, dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1a0]
mov esi, dword [ebp - 0x1a4]
sub eax, esi
mov dword [ebp - 0x178], ecx
push ecx
push edx
cmp ecx, eax
ja 0x40738f
cmp dword [ebp - 0x1a0], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1b4]
cmova eax, dword [ebp - 0x1b4]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x178]
add esp, 0xc
mov byte [eax + esi], 0
lea eax, [ebp - 0x1b4]
jmp 0x4073a1
push dword [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x1b4]
call fcn.00411130
movups xmm0, xmmword [eax]
or edi, 0x4000
movups xmmword [ebp - 0x1cc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1bc], 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 - 0x1cc]
lea ecx, [ebp - 0x234]
call fcn.00406470
mov ecx, eax
add esp, 4
mov dword [ebp - 0x150], ecx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x8c]
mov eax, dword [ebp - 0x78]
cmp eax, 0xf
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x8c]
cmova esi, eax
mov dword [ebp - 0x178], eax
mov eax, dword [ecx + 0x14]
sub eax, edx
mov dword [ebp - 0x174], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x158], esi
cmp edx, eax
ja 0x40746d
cmp dword [ecx + 0x14], 0xf
mov esi, dword [ebp - 0x174]
lea eax, [esi + edx]
mov dword [ecx + 0x10], eax
mov eax, ecx
jbe 0x40744c
mov eax, dword [ecx]
push edx
push dword [ebp - 0x158]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x150]
jmp 0x407490
push edx
push esi
push dword [ebp - 0x150]
push edx
call fcn.00411130
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x1d4], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x178], ecx
movups xmm0, xmmword [eax]
or edi, 0x8000
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x26c], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x21c]
call fcn.00406fe0
add esp, 4
mov esi, dword [ebp - 0x1d0]
mov byte [ebp - 4], 8
lea ecx, [esi + 0x1b4]
push ecx
mov ecx, eax
call fcn.0040d570
or edi, 0x10000
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x264], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x254], 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 - 0x264]
lea ecx, [ebp - 0x204]
call fcn.00406470
add esp, 4
push esi
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040d570
or edi, 0x20000
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x23c], 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 - 0x24c]
lea ecx, [ebp - 0x1ec]
call fcn.00406670
add esp, 4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.0040d570
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 - 0x1d8]
cmp ecx, 0xf
jbe 0x407610
mov edx, dword [ebp - 0x1ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407606
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0xf
mov byte [ebp - 0x1ec], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x238]
cmp ecx, 0xf
jbe 0x407669
mov edx, dword [ebp - 0x24c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40765f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1f0]
cmp ecx, 0xf
jbe 0x4076a7
mov edx, dword [ebp - 0x204]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40769d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0xf
mov byte [ebp - 0x204], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x250]
cmp ecx, 0xf
jbe 0x407700
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4076f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x208]
cmp ecx, 0xf
jbe 0x40773e
mov edx, dword [ebp - 0x21c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407734
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0xf
mov byte [ebp - 0x21c], 0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x268]
cmp ecx, 0xf
jbe 0x407797
mov edx, dword [ebp - 0x27c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40778d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x220]
cmp ecx, 0xf
jbe 0x4077d5
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4077cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 0xf
jbe 0x40782a
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407820
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push ecx
push edx
call fcn.00478074
add esp, 8
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 0xf
jbe 0x40786a
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407860
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407860
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00478074
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x1a4], 0
lea eax, [esi + 0x60]
mov dword [ebp - 0x150], esp
mov ecx, esp
mov dword [ebp - 0x1a0], 0xf
mov byte [ebp - 0x1b4], 0
push eax
call fcn.0040d720
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.0040d720
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.00408080
add esp, 0x30
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0x18
mov eax, esp
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x5c]
mov dword [eax + 0x24], 0
call fcn.004108a0
add esp, 0x30
mov byte [ebp - 4], 0x19
xor ecx, ecx
mov dword [ebp - 0x148], 0xadaeb9b6
mov dword [ebp - 0x144], 0x8487be
mov byte [ebp - 0x140], 1
nop dword [eax]
lea eax, [ecx - 0x25]
xor byte [ebp + ecx - 0x148], al
inc ecx
cmp ecx, 7
jb 0x407900
push ecx
lea eax, [ebp - 0x141]
mov byte [ebp - 0x140], 0
push eax
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.00410720
or edi, 0x60
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040cac0
mov byte [ebp - 4], 0x1b
xorps xmm0, xmm0
or edi, 0x100
mov dword [ebp - 0x24], 0
cmp byte [eax], 3
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x174], edi
jne 0x407981
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x407998
jmp 0x407983
xor eax, eax
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x40798e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0040fdd0
and edi, 0xfffffeff
mov dword [ebp - 4], 0x1a
or edi, 0x80
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 0xf
jbe 0x4079eb
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4079e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4079e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00478074
add esp, 8
push 0xb0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x1a4], 0
push 0
push eax
mov dword [ebp - 0x1a0], 0xf
mov byte [ebp - 0x1b4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x13c], 0x48be54
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x12c], 0x48be2c
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], 0x1e
or edi, 0x200
lea ecx, [ebp - 0x13c]
push eax
mov dword [ebp - 0x174], 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], 0x1f
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], 0x20
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.00412900
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
lea edi, [eax + 0x20]
mov eax, dword [ebp - 0x1c]
movups xmmword [eax + 0x10], xmm0
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + 0x1cc]
sub edi, edx
cmp dword [ebp - 0x38], 0xf
cmova eax, dword [ebp - 0x4c]
cmp dword [ecx + 0x14], 0xf
jbe 0x407b23
mov ecx, dword [ecx]
push edi
push edx
push dword [ebp - 0x3c]
mov edx, dword [esi + 0x1dc]
push eax
call fcn.0041c6b0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x150], eax
cmp edi, eax
je 0x407bb4
nop word [eax + eax]
mov al, byte [edi]
lea ecx, [ebp - 0x12c]
push 0x401f00
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
lea eax, [ebp - 0x170]
push 0
push 2
push eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov byte [ecx + esi + 0x40], 0x30
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 0x407b50
cmp dword [0x493490], 0xf
lea eax, [ebp - 0x1cc]
mov esi, 0x49347c
lea ecx, [ebp - 0x13c]
cmova esi, dword [0x49347c]
push eax
call fcn.0040b1b0
cmp dword [eax + 0x14], 0xf
jbe 0x407be1
mov eax, dword [eax]
movd xmm0, dword [esi]
movd xmm1, dword [eax]
mov ecx, dword [ebp - 0x1b8]
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 0x407c5c
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407c52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407c52
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00478074
add esp, 8
test esi, esi
je 0x407caa
sub esp, 0x18
mov eax, bind
mov esi, esp
mov dword [ebp - 0x150], esi
mov edx, dword [ebp - 0x24]
sub eax, edx
cmp eax, 0x6b
jb 0x408074
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
cmp ecx, 0xf
push edx
cmova eax, dword [ebp - 0x34]
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 - 0x150]
mov ecx, esi
call fcn.00412b70
call fcn.00408570
add esp, 0x18
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x170]
call fcn.0040ce20
push str.success
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x22
call fcn.00410370
mov edi, dword [ebp - 0x1d0]
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.00410370
cmp byte [eax], 3
jne 0x407d00
mov eax, dword [eax + 8]
jmp 0x407d02
xor eax, eax
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x407d0c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [edi + 0x19c]
call fcn.0040fdd0
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0x21
call fcn.0040ce00
mov dword [ebp - 0x148], 0xbdbea9a8
xor ecx, ecx
mov dword [ebp - 0x144], 0x9293ba
mov byte [ebp - 0x140], 1
nop word [eax + eax]
lea eax, [ecx - 0x25]
xor byte [ebp + ecx - 0x148], al
inc ecx
cmp ecx, 7
jb 0x407d50
push ecx
lea eax, [ebp - 0x141]
mov byte [ebp - 0x140], 0
push eax
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00410720
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 0x23
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040cac0
xor edx, edx
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
mov al, byte [ecx]
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x1b8]
mov byte [ebp - 0x149], al
cmp ecx, 0xf
jbe 0x407ded
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407ddd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407ddd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00478074
mov al, byte [ebp - 0x149]
add esp, 8
test al, al
je 0x407ea4
mov dword [ebp - 0x158], 0xb1bbb2b2
xor ecx, ecx
mov word [ebp - 0x154], 0x100
nop word [eax + eax]
lea eax, [ecx - 0x25]
xor byte [ebp + ecx - 0x158], al
inc ecx
cmp ecx, 4
jb 0x407e10
push ecx
lea eax, [ebp - 0x154]
mov byte [ebp - 0x153], 0
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00410720
sub esp, 0x10
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0x1cc]
mov esi, esp
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040cac0
push eax
mov ecx, esi
call fcn.0040ce20
mov ecx, edi
call fcn.00403210
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 0xf
jbe 0x407ea4
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407e9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407e9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00478074
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x407eed
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x407ece
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408047
push edx
push ecx
call fcn.00478074
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.0040c6f0
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 - 0x20]
cmp ecx, 0xf
jbe 0x407f6b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408047
push ecx
push edx
call fcn.00478074
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.0040ce00
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x407fa7
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408047
push ecx
push edx
call fcn.00478074
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x407fe9
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407fdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408047
push ecx
push edx
call fcn.00478074
add esp, 8
mov eax, dword [ebp - 0x1d4]
cmp eax, 0xf
jbe 0x408021
mov edx, dword [ebp - 0x178]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x408017
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408047
push ecx
push edx
call fcn.00478074
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x408057
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40804d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40804d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00478074
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.00477d30
mov esp, ebp
pop ebp
ret 0x18
call fcn.00401700
int3