Function at 0x409c8f
Capabilities:
Encode data using xor

Disassembly:
push 0x10c
mov eax, 0x54042a
call fcn.004e6a52
mov esi, ecx
mov eax, dword [esi + 4]
sub eax, dword [esi]
jne 0x409cd1
push str._password.dat
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00406bc5
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00406aaa
lea ecx, [ebp - 0x58]
call fcn.0040258a
jmp 0x40a2a4
xor ebx, ebx
lea ecx, [ebp - 0x118]
push ebx
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_enum_Json::ValueType_
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], ebx
call sym.steamworks.exe_public:_void___thiscall_Json::FastWriter::constructor_void_
push ebx
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_enum_Json::ValueType_
mov byte [ebp - 4], 2
mov eax, dword [esi + 4]
sub eax, dword [esi]
push 0x48
pop ecx
cdq
idiv ecx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe8], ecx
test eax, eax
je 0x40a122
mov edi, ebx
push ebx
lea ecx, [ebp - 0x88]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_enum_Json::ValueType_
push 0xf
pop eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x70], bl
mov byte [ebp - 4], 6
sub esp, 0x18
mov eax, dword [esi]
mov ecx, esp
add eax, edi
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402603
lea ecx, [ebp - 0x58]
call fcn.00406eb8
mov ebx, eax
add esp, 0x18
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x409de6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x409dce
mov eax, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], eax
cmp ecx, 0x1000
jb 0x409dc5
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xdc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xe0]
push ecx
push eax
call fcn.004e6456
pop ecx
pop ecx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
push ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00405624
lea ecx, [ebp - 0x58]
call fcn.0040545f
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
add eax, 0x18
xor edx, edx
add eax, edi
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00402603
lea ecx, [ebp - 0x58]
call fcn.00406eb8
mov ebx, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x409e80
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x409e68
mov eax, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], eax
cmp ecx, 0x1000
jb 0x409e5f
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xe0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xdc]
push ecx
push eax
call fcn.004e6456
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00405624
lea ecx, [ebp - 0x58]
call fcn.0040545f
mov eax, dword [esi]
sub esp, 0x18
mov ecx, esp
add eax, 0x30
xor edx, edx
add eax, edi
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00402603
lea ecx, [ebp - 0x58]
call fcn.00406eb8
mov ebx, eax
add esp, 0x18
lea eax, [ebp - 0x70]
cmp eax, ebx
je 0x409f1a
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x409f02
mov eax, dword [ebp - 0x70]
inc ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], eax
cmp ecx, 0x1000
jb 0x409ef9
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xe0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xdc]
push ecx
push eax
call fcn.004e6456
pop ecx
pop ecx
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x70]
push ebx
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00405624
lea ecx, [ebp - 0x58]
call fcn.0040545f
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x40]
push eax
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_char_const__
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
push str.strName
lea ecx, [ebp - 0x88]
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator_class_Json::Value__
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x28]
push eax
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_char_const__
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
push str.cdkey
lea ecx, [ebp - 0x88]
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator_class_Json::Value__
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
push str.appid
lea ecx, [ebp - 0x88]
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator_class_Json::Value__
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x100]
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::append_class_Json::Value_const__
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40a032
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ecx
cmp eax, 0x1000
jb 0x40a029
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xdc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xe0]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], bl
cmp eax, 0x10
jb 0x40a08a
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ecx
cmp eax, 0x1000
jb 0x40a081
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xdc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xe0]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
cmp eax, 0x10
jb 0x40a0e0
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ecx
cmp eax, 0x1000
jb 0x40a0d7
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xdc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xe0]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
mov byte [ebp - 4], 2
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
push 0x48
pop eax
add edi, eax
mov ecx, dword [ebp - 0xe4]
mov eax, dword [esi + 4]
inc ecx
sub eax, dword [esi]
cdq
idiv dword [ebp - 0xe8]
mov dword [ebp - 0xe4], ecx
cmp ecx, eax
jb 0x409d22
lea eax, [ebp - 0x100]
push eax
push str.keyArray
lea ecx, [ebp - 0x118]
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator_class_Json::Value_const__
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xd8]
call sym.steamworks.exe_public_virtual:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Json::FastWriter::write_class_Json::Value_const__
mov byte [ebp - 4], 0xa
mov ecx, ebx
cmp dword [ebp - 0x90], 0
jbe 0x40a189
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
xor byte [eax + ecx], 0x32
inc ecx
cmp ecx, dword [ebp - 0x90]
jb 0x40a168
push str.password.dat
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00406bc5
add esp, 0xc
mov byte [ebp - 4], 0xb
lea esi, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
mov ebx, dword [ebp - 0x90]
cmovae esi, dword [ebp - 0xa0]
test esi, esi
je 0x40a262
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push 0x5c
cmovae eax, dword [ebp - 0xb8]
push 0xffffffffffffffff
push dword [ebp - 0xa8]
push eax
call fcn.00406c38
add esp, 0x10
lea ecx, [ebp - 0xb8]
push eax
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00404ae6
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push 0x57505c
cmovae eax, dword [ebp - 0xb8]
push eax
call fcn.0050130f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a257
push edi
push 1
push ebx
push esi
call fcn.00500661
push edi
call fcn.00500101
add esp, 0x14
lea ecx, [ebp - 0x88]
call fcn.0040258a
lea ecx, [ebp - 0xb8]
call fcn.0040258a
lea ecx, [ebp - 0xa0]
call fcn.0040545f
lea ecx, [ebp - 0x100]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
lea ecx, [ebp - 0xd4]
call fcn.0040545f
lea ecx, [ebp - 0xd8]
call sym.steamworks.exe_public_virtual:_void___thiscall_Json::Writer::destructor_void_
lea ecx, [ebp - 0x118]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
call fcn.004e6a01
ret