Function at 0x42a330
Capabilities:
Get common file path
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449f11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2118
call fcn.0042dd50
push ebx
push ebp
push esi
push edi
call fcn.00404100
cmp eax, 2
je 0x42a36d
cmp eax, 3
jne 0x42a61b
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x20]
mov cl, byte [eax + edx - 1]
dec edx
xor ebx, ebx
cmp cl, 0x5c
je 0x42a3b1
lea edi, [esp + 0x20]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x42a3a0
mov ax, word [0x44b63c]
mov word [edi], ax
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x42a3b6
mov ecx, dword [str.WININIT.INI]
mov edx, dword [0x44bf18]
mov eax, dword [0x44bf1c]
mov dword [edi], ecx
lea ecx, [esp + 0x20]
push ecx
mov dword [edi + 4], edx
push 0x1000
lea edx, [esp + 0x1130]
push edx
push str.RENAME
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, ebx
je 0x42a61b
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
push 0x20
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ecx]
mov ebp, dword [esp + 0x18]
lea ebp, [esp + ebp + 0x1128]
push ebp
lea ecx, [esp + 0x14]
call fcn.00402470
push 0x44bfa0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2138], ebx
call fcn.00403790
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x42a582
push eax
lea ecx, [esp + 0x18]
call fcn.00402470
lea ecx, [esp + 0x14]
mov byte [esp + 0x2134], 1
call fcn.00401ba0
mov edi, 0x44d498
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov ecx, dword [0x466dec]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s.NEW
push edx
mov byte [esp + 0x2144], 2
call fcn.00401d20
mov esi, dword [esp + 0x2c]
add esp, 0x10
cmp esi, ebx
je 0x42a4d9
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x42a4d9
push esi
push eax
call fcn.0042f637
add esp, 8
cmp eax, ebx
je 0x42a4d9
sub eax, dword [esp + 0x14]
cmp eax, ebx
jg 0x42a631
lea eax, [esi - 0x10]
mov byte [esp + 0x2134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a4fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 4
cmp edi, 0x44d4b4
jl 0x42a477
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a510
lea edi, [esp + 0x128]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x42a521
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x42a541
mov ax, word [0x44d4e0]
mov cl, byte [0x44d4e2]
mov word [edi], ax
mov byte [edi + 2], cl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2134], bl
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42a587
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + esi + 1]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2134], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a5c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
jne 0x42a420
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x42a5d7
mov al, byte [0x44d750]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.RENAME
mov byte [edi], al
call esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x12c]
push eax
push str.RENAME
call esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x212c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x2134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a55b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x42a55b