Function at 0x404b90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2104
call fcn.0043d750
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
lea eax, [ebp - 0x2104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
dec eax
cmp eax, 0x107e
ja 0x404e2a
push edi
lea edi, [ebp - 0x2104]
mov byte [ebp - 0x1105], 0
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404bd4
mov ax, word [0x466b84]
lea ecx, [ebp - 0x2104]
mov word [edi], ax
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x404bf0
mov eax, dword [str.RP121032.INI]
mov dword [ecx], eax
mov eax, dword [0x466b8c]
mov dword [ecx + 4], eax
mov eax, dword [0x466b90]
mov dword [ecx + 8], eax
mov al, byte [0x466b94]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x2104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea eax, [ebp - 0x2104]
push eax
je 0x404e14
push 0x1000
lea eax, [ebp - 0x1084]
push eax
push 0
push str.APIImplementations
push str.RP1210Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1084]
push str.SM2RP32
push eax
call fcn.00423290
add esp, 8
test eax, eax
jne 0x404ca9
lea edi, [ebp - 0x1084]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404c72
mov ax, word [0x466b48]
lea ecx, [ebp - 0x1084]
mov word [edi], ax
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x404c90
mov eax, dword [str.SM2RP32]
mov dword [ecx], eax
mov eax, dword [0x4663e4]
mov dword [ecx + 4], eax
push esi
push 0x466b3c
mov edx, 0x466b40
lea ecx, [ebp - 0x1084]
call fcn.00401af0
lea esi, [ebp - 0x1084]
add esp, 4
mov edx, eax
sub esi, eax
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x404cd0
push eax
call fcn.00430bb8
add esp, 4
lea eax, [ebp - 0x1084]
cmp byte [ebp - 0x1084], 0x2c
jne 0x404d00
mov byte [eax], 0x20
lea eax, [eax + 1]
cmp byte [eax], 0x2c
je 0x404cf5
lea ecx, [ebp - 0x1084]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404d10
sub ecx, edx
je 0x404d43
lea eax, [ebp + ecx - 0x1085]
lea ecx, [ebp - 0x1084]
cmp eax, ecx
jbe 0x404d43
nop dword [eax]
cmp byte [eax], 0x2c
jne 0x404d43
mov byte [eax], 0x20
lea ecx, [ebp - 0x1084]
dec eax
cmp eax, ecx
ja 0x404d30
lea eax, [ebp - 0x1084]
push 0x466b44
push eax
call fcn.00423290
add esp, 8
test eax, eax
je 0x404dad
nop dword [eax + eax]
push 0x466b48
mov edx, 0x466b44
lea ecx, [ebp - 0x1084]
call fcn.00401af0
lea esi, [ebp - 0x1084]
add esp, 4
mov edx, eax
sub esi, eax
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x404d82
push eax
call fcn.00430bb8
lea eax, [ebp - 0x1084]
push 0x466b44
push eax
call fcn.00423290
add esp, 0xc
test eax, eax
jne 0x404d60
push 0x466b3c
mov edx, 0x466b40
lea ecx, [ebp - 0x1084]
call fcn.00401af0
lea esi, [ebp - 0x1084]
add esp, 4
mov edx, eax
sub esi, eax
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x404dd0
push eax
call fcn.00430bb8
add esp, 4
lea eax, [ebp - 0x2104]
push eax
lea eax, [ebp - 0x1084]
push eax
push str.APIImplementations
push str.RP1210Support
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret
push str.SM2RP32
push str.APIImplementations
push str.RP1210Support
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret