Function at 0x401d10
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x407799
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov al, byte [esp + 0x7c]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x459f48
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x4082c0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x84], 1
push ecx
push 0x459f48
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov cl, byte [esp + 0x8c]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x88], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x459f48
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x84], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], esi
push ecx
push 0x459f48
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea edx, [esp + 0x40]
mov byte [esp + 0x84], 4
push edx
call fcn.00401ba0
add esp, 4
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add eax, 4
mov byte [esp + 0x84], 5
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 4
call fcn.00402ea0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401e1c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x24]
call fcn.00402f20
push eax
push 0x459f48
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x40a07c
call fcn.00402320
lea eax, [esp + 0x78]
push eax
call fcn.00401200
add esp, 0x18
mov ecx, eax
mov byte [esp + 0x94], 6
call fcn.00402410
push eax
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.GUID
call fcn.00402320
lea ecx, [esp + 0x68]
push ecx
call fcn.00401200
add esp, 0x18
mov ecx, eax
mov byte [esp + 0x98], 7
call fcn.00402410
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 6
call fcn.00402ea0
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 4
call fcn.00402ea0
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.00403040
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x401ed6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0x459f48
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4020e9
lea edx, [esp + 0x54]
push edx
call fcn.00402420
add esp, 4
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add eax, 4
mov byte [esp + 0x84], 8
mov edx, dword [ecx]
lea ecx, [esp + 0x1c]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 4
call fcn.00402ea0
lea ecx, [esp + 0x18]
call fcn.00402f10
test eax, eax
je 0x4020e9
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401f4a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [esp + 0x1c]
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00402210
lea ecx, [esp + 0x80]
push ecx
call fcn.00401770
add esp, 0x18
mov ecx, eax
mov byte [esp + 0x88], 9
call fcn.00402410
push eax
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40a07c
call fcn.00402320
lea edx, [esp + 0x5c]
push edx
call fcn.00401200
add esp, 0x18
mov bl, 0xa
mov ecx, eax
mov byte [esp + 0x8c], bl
call fcn.00402410
push eax
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push str.GUID
call fcn.00402320
lea eax, [esp + 0x74]
push eax
call fcn.00401200
add esp, 0x18
mov ecx, eax
mov byte [esp + 0x90], 0xb
call fcn.00402410
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], bl
call fcn.00402ea0
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 9
call fcn.00402ea0
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 4
call fcn.00402ea0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x402024
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [esp + 0x8c]
mov cl, byte [esp + 0x8c]
push 0
lea edi, [ebp + 4]
mov byte [edi], cl
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x24]
mov dword [ebp], esi
mov ecx, dword [edi + 8]
mov byte [esp + 0x84], 0xc
cmp eax, ecx
ja 0x402074
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
push ecx
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
jmp 0x402081
sub eax, ecx
push 0
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_unsigned_int__char_]
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test esi, esi
jne 0x402093
mov esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x40209c
mov edi, eax
mov edx, ecx
mov dword [esp + 0x10], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 2
call fcn.00402ea0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 0
call fcn.00402ea0
mov eax, ebp
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov al, byte [esp + 0x8c]
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x28], esp
push 0
mov dword [esp + 0x2c], edi
lea ebp, [edi + 4]
mov ecx, ebp
mov byte [ebp], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [edi], esi
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x98], 0xd
cmp ebx, eax
ja 0x402136
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, ebp
push edx
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
jmp 0x40218b
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
sub ebx, eax
mov edx, dword [ecx]
sub edx, eax
cmp edx, ebx
ja 0x40214c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test ebx, ebx
jbe 0x40218b
mov esi, dword [ebp + 8]
push 0
add esi, ebx
mov ecx, ebp
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40218b
mov edi, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov ecx, ebx
add edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [edi + 0xc]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test esi, esi
jne 0x40219d
mov esi, eax
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x4021a6
mov eax, ebp
mov ecx, edi
mov edi, eax
mov eax, ecx
mov byte [esp + 0x98], 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xa0]
push esi
call fcn.004019c0
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 1
mov byte [esp + 0x84], 2
call fcn.00402ea0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 0
call fcn.00402ea0
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret