Function at 0x40a150
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46eee2
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x644], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x65c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x66c]
push str.CRsWork::InitConfigData
push 0x473ab0
push 0x80
call fcn.00431310
add esp, 0xc
call fcn.004071d0
xor ebx, ebx
lea esi, [ebp + 0x40]
cmp eax, ebx
jne 0x40a1bb
xor ecx, ecx
jmp 0x40a1c9
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40a1c0
sub ecx, edi
push eax
mov edi, ecx
mov eax, esi
call fcn.004032c0
push 0x103
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00446e10
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push str..ini
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a70d
lea ecx, [esp + 0x28]
lea eax, [ebp + 0x38]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40a233
sub ecx, esi
lea edx, [esp + 0x28]
push edx
mov edi, ecx
call fcn.004032c0
push 0x103
lea eax, [esp + 0x44d]
push ebx
push eax
mov byte [esp + 0x454], bl
call fcn.00446e10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
lea edx, [esp + 0x450]
push edx
push 0x473127
push str.RAP_INSTALLPATH
push str.RAP_CONFIG
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44c]
call fcn.00403130
lea edi, [esp + 0x18]
mov dword [esp + 0x664], ebx
call fcn.0040be60
mov ebx, edi
call fcn.0040bdd0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jle 0x40a2e1
lea ebx, [ebp + 0x30]
mov eax, edi
call fcn.00403260
push str.RisingRav
push ebx
mov edx, 0xb
call fcn.0040c470
mov ecx, dword [ebx]
call fcn.00406780
lea edx, [esp + 0x28]
push edx
push 0xffffffffffffffff
push str.RAP_HOMEPAGE_DEFAULT_NUM
push str.RAP_CONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x103
mov dword [ebp + 0x3c], eax
lea eax, [esp + 0x23d]
push 0
push eax
mov byte [esp + 0x244], 0
call fcn.00446e10
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
lea edx, [esp + 0x240]
push edx
push 0x473127
push str.RAP_IS_SILENCE
push str.RAP_CONFIG
call esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x23c]
call fcn.00403130
lea edi, [esp + 0x20]
mov byte [esp + 0x664], 1
call fcn.0040be60
mov ebx, edi
call fcn.0040bdd0
mov ecx, dword [esp + 0x20]
push str.true
push ecx
call fcn.004429b9
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x40a385
mov dword [ebp + 0x24], 1
push 0x103
lea edx, [esp + 0x135]
push ebx
push edx
mov byte [esp + 0x13c], bl
call fcn.00446e10
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x104
lea ecx, [esp + 0x138]
push ecx
push 0x473127
push str.PATH
push str.LocalAutoUpdate
call esi
lea ecx, [esp + 0x130]
lea eax, [ebp + 0xb8]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40a3d5
sub ecx, edi
lea edx, [esp + 0x130]
push edx
mov edi, ecx
call fcn.004032c0
push 0x103
lea eax, [esp + 0x345]
push ebx
push eax
mov byte [esp + 0x34c], bl
call fcn.00446e10
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
lea edx, [esp + 0x348]
push edx
push 0x473127
push str.RAP_SN
push str.RAP_CONFIG
call esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x344]
call fcn.00403130
lea ebx, [esp + 0x14]
mov byte [esp + 0x664], 2
call fcn.0040bdd0
mov edi, eax
call fcn.0040be60
cmp dword [ebp + 0x24], 0
je 0x40a692
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jle 0x40a692
push 0x103
lea edx, [esp + 0x555]
push 0
push edx
mov byte [esp + 0x55c], 0
call fcn.00446e10
add esp, 0xc
lea eax, [esp + 0x550]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x554]
call fcn.00403130
push str.CheckSN
lea edx, [esp + 0x20]
push edx
mov bl, 3
mov edx, 8
mov byte [esp + 0x66c], bl
call fcn.0040c470
mov eax, dword [esp + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040b540
test eax, eax
jne 0x40a5a9
push str.ReleaseDui_failed.
push 0x80
call fcn.00431310
mov byte [esp + 0x66c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x664], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a54f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x664], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x664], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a712
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00403350
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x668], 4
call fcn.00433fe0
mov ecx, eax
mov byte [esp + 0x668], bl
call fcn.00434060
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00403350
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x668], 5
call fcn.00433fe0
mov ecx, eax
mov byte [esp + 0x668], bl
call fcn.004340e0
test eax, eax
jne 0x40a655
mov ecx, dword [esp + 0x14]
push ecx
push str.DoCheck_SN_s_failed.
push 0x80
call fcn.00431310
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004031d0
lea ecx, [esp + 0x14]
call fcn.004031d0
lea ecx, [esp + 0x20]
call fcn.004031d0
lea ecx, [esp + 0x18]
call fcn.004031d0
xor eax, eax
jmp 0x40a712
call fcn.00402100
call fcn.00403060
test eax, eax
je 0x40a67d
call fcn.00433fe0
cmp dword [eax + 0x80], 0x20
jne 0x40a67d
mov edx, dword [esp + 0x14]
push edx
push str.DoCheck_SN_s_is_not_belong_to_this_System_failed.
jmp 0x40a61d
call fcn.00433fe0
mov esi, eax
call fcn.00434740
lea ecx, [esp + 0x1c]
call fcn.004031d0
mov byte [esp + 0x664], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x664], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x664], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a70d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x65c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x644]
xor ecx, esp
call fcn.004426a0
add esp, 0x654
ret 4