Function at 0x4070d0
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472c98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
cmp dword [ebx + 0x14], 0x10
mov esi, dword [ebp + 8]
jb 0x40710d
mov eax, dword [ebx]
jmp 0x40710f
mov eax, ebx
push eax
push 0xffffffffffffffff
push str.size
push 0x481c34
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jle 0x407370
lea ebx, [edi + 0xa]
push ebx
call fcn.00420ef4
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x407152
push ebx
mov ebx, eax
push 0
push ebx
call fcn.00424e10
add esp, 0xc
jmp 0x407157
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x14], 0x10
jb 0x407162
mov eax, dword [eax]
push eax
lea eax, [edi + 1]
push eax
push ebx
push 0
push 0x481c34
push 0x481c34
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x3c]
push eax
mov edx, ebx
mov ecx, ebx
call fcn.004152d0
mov eax, ebx
mov dword [ebp - 0x30], eax
mov cl, byte [ebx]
add esp, 4
cmp cl, 0xaa
je 0x4071a9
xor cl, 0xaa
mov byte [eax], cl
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov cl, byte [eax]
cmp cl, 0xaa
jne 0x407196
xor byte [eax], 0xaa
lea eax, [ebp - 0x30]
push eax
push 0x481c38
push ebx
call fcn.00421736
mov edx, eax
add esp, 0xc
test edx, edx
je 0x407364
jmp 0x4071d0
cmp byte [edx], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x4071eb
xor ecx, ecx
jmp 0x4071f9
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4071f0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004014f0
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
lea eax, [ebp - 0x2c]
cmp eax, edi
jae 0x4072ab
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
cmp eax, ecx
ja 0x4072ab
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [esi + 8]
jne 0x407245
push ecx
mov ecx, esi
call fcn.00407ce0
mov eax, dword [esi]
lea ecx, [ebx + ebx*2]
mov ebx, dword [esi + 4]
lea edi, [eax + ecx*8]
test ebx, ebx
je 0x407316
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [edi + 0x14], 0x10
jae 0x407282
mov eax, dword [edi + 0x10]
inc eax
je 0x40728c
push eax
push edi
push ebx
call fcn.004208b0
add esp, 0xc
jmp 0x40728c
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
jmp 0x407316
cmp edi, dword [esi + 8]
jne 0x4072b8
push ecx
mov ecx, esi
call fcn.00407ce0
mov edi, dword [esi + 4]
test edi, edi
je 0x407316
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [ebp - 0x18], 0x10
jae 0x4072ec
mov eax, dword [ebp - 0x1c]
inc eax
je 0x4072f8
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.004208b0
add esp, 0xc
jmp 0x4072f8
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x14], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
add dword [esi + 4], 0x18
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x407332
push dword [ebp - 0x2c]
call fcn.00420618
add esp, 4
lea eax, [ebp - 0x30]
push eax
push 0x481c38
push 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00421736
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x4071d0
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.00421037
mov ebx, dword [ebp - 0x38]
add esp, 4
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x407393
lea eax, [ebx + 0x28]
push eax
mov ecx, esi
call fcn.00407a40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 4