Function at 0x402890
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
lea eax, [esp + 0x360]
push edi
push eax
mov ebp, 1
call fcn.00402cf0
mov edi, str.ArCab.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x364]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x364]
mov ecx, ebx
push eax
and ecx, 3
push 0
push str.Total
rep movsb byte es:[edi], byte [esi]
push str.EncryptFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edx, edx
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x402b88
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xf8]
lea ebp, [edx + 1]
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x200]
push str.File__d
push ecx
call fcn.0040cd10
add esp, 0xc
lea edx, [esp + 0x364]
lea eax, [esp + 0xf8]
lea ecx, [esp + 0x1fc]
push edx
push 0x104
push eax
push 0x44164c
push ecx
push str.EncryptFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x44164c
lea eax, [esp + 0xf8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402990
test cl, cl
je 0x40298c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402990
add eax, 2
add esi, 2
test cl, cl
jne 0x40296c
xor eax, eax
jmp 0x402995
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402aaf
lea eax, [esp + 0xf8]
push 0x43d2ac
push eax
call fcn.0040cc90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402aab
mov edx, dword [esp + 0x674]
lea ecx, [esp + 0xf8]
push ecx
push edx
lea eax, [esp + 0x574]
push str._s_s
push eax
call fcn.0040cd10
mov edi, str..dat
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x108]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x274]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x688]
push ecx
push str._s_s
push edx
call fcn.0040cd10
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xb4]
lea edx, [esp + 0x58c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0xb4]
push eax
push ecx
push edx
call fcn.00402fc0
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x5c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x290]
push eax
push ecx
call fcn.00402fc0
add esp, 0x38
lea esi, [esp + 0x30]
lea eax, [esp + 0x94]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x402aa2
test cl, cl
je 0x402a9e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x402aa2
add eax, 2
add esi, 2
test cl, cl
jne 0x402a7a
xor eax, eax
jmp 0x402aa7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402acb
mov ebx, dword [esp + 0x10]
mov edx, ebp
cmp edx, ebx
jl 0x40290a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x660
ret 4
mov eax, 0x1010101
lea ecx, [esp + 0x468]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00402cf0
mov edi, str.ArLib.dll
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x468]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x468]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x402b79
push str.DllRC4File
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b79
lea ecx, [esp + 0x14]
push 0x14
push ecx
lea edx, [esp + 0x268]
lea ecx, [esp + 0x574]
push edx
push ecx
call eax
test eax, eax
jne 0x402b79
lea edx, [esp + 0x28]
lea eax, [esp + 0x260]
push edx
push eax
call fcn.004030a0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x660
ret 4