Function at 0x40ce40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6ac
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x158], 0
mov ecx, 0x41
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x15c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x158]
push 0x5c
push ecx
call fcn.004299c4
mov edx, eax
xor eax, eax
mov byte [esp + 0x478], 0
mov ecx, 0x40
lea edi, [esp + 0x479]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x268], 0
mov ecx, 0x40
lea edi, [esp + 0x269]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
test edx, edx
stosb byte es:[edi], al
je 0x40cee3
lea esi, [edx + 1]
push esi
push 0x104
lea edx, [esp + 0x268]
push edx
call fcn.00401710
mov byte [esi], 0
lea eax, [esp + 0x158]
push eax
push 0x104
lea ecx, [esp + 0x478]
push ecx
call fcn.00401710
push 0x43e650
push 0x105
lea edx, [esp + 0x160]
push edx
call fcn.00401ac0
lea eax, [esp + 0x158]
push eax
push 0x40
lea ecx, [esp + 0x120]
push ecx
push str.Rav.INI
push 0x43e644
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x118]
push edx
call fcn.0042afb1
lea eax, [esp + 0x11c]
push str.rav.ini
push eax
call fcn.0042af1d
add esp, 0xc
test eax, eax
jne 0x40cf8c
mov ebx, 0x105
lea esi, [esp + 0x158]
mov edx, 0x43d888
call fcn.0040c040
push str.rav.ini
push ebx
mov ecx, esi
push ecx
call fcn.00401ac0
mov ebx, 1
jmp 0x40cfbf
push 0x105
lea edx, [esp + 0x15c]
push edx
push 0x43e630
call fcn.0040d2e0
add esp, 0xc
push str.rfw.ini
push 0x105
lea eax, [esp + 0x160]
push eax
call fcn.00401ac0
xor ebx, ebx
lea ecx, [esp + 0x158]
push ecx
push 1
push str.Current
push str.Skin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
test esi, esi
jne 0x40cff0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
jne 0x40d02d
lea eax, [esp + 0x260]
push eax
call fcn.0042afb1
lea ecx, [esp + 0x264]
push str..exe
push ecx
call fcn.00429a2f
add esp, 0xc
test eax, eax
je 0x40d057
push str..xml
push 5
push eax
call fcn.00401710
jmp 0x40d057
push eax
push 0x104
lea edx, [esp + 0x268]
push edx
call fcn.00401710
push str..xml
push 0x104
lea eax, [esp + 0x268]
push eax
call fcn.00401ac0
mov byte [esp + 0x368], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x369]
rep stosd dword es:[edi], eax
push str.skin_skin_d_
stosw word es:[edi], ax
push 0x104
lea ecx, [esp + 0x18]
push ecx
stosb byte es:[edi], al
call fcn.00401710
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x370]
push 0x104
push eax
call fcn.00409b60
add esp, 0x10
lea ecx, [esp + 0x470]
push ecx
push 0x104
lea edx, [esp + 0x18]
push edx
call fcn.00401710
lea eax, [esp + 0x368]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.00401ac0
lea edx, [esp + 0x260]
push edx
push 0x104
lea eax, [esp + 0x18]
push eax
call fcn.00401ac0
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x578]
push ecx
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x40d10e
test byte [esp + 0x578], 0x10
je 0x40d1aa
push str.skin_skin_d_
push 0x104
lea eax, [esp + 0x18]
push eax
call fcn.00401710
push esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x370]
push 0x104
push edx
call fcn.00409b60
add esp, 0x10
test ebx, ebx
mov eax, str.rav.xml
jne 0x40d14b
mov eax, str.rfwmain.xml
push eax
push 0x104
lea eax, [esp + 0x370]
push eax
call fcn.00401ac0
lea ecx, [esp + 0x470]
push ecx
push 0x104
lea edx, [esp + 0x18]
push edx
call fcn.00401710
lea eax, [esp + 0x368]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.00401ac0
lea edx, [esp + 0x578]
push edx
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
je 0x40d1d6
test byte [esp + 0x578], 0x10
jne 0x40d1d6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0xc]
cmp eax, 0x7fffffff
ja 0x40d1ca
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call fcn.00401710
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x470]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.00401710
push str.skin_skin1_
push 0x104
lea edx, [esp + 0x18]
push edx
call fcn.00401ac0
lea eax, [esp + 0x260]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.00401ac0
lea edx, [esp + 0x578]
push edx
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
je 0x40d236
test byte [esp + 0x578], 0x10
je 0x40d29d
lea eax, [esp + 0x470]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call fcn.00401710
push str.skin_skin1_
push 0x104
lea edx, [esp + 0x18]
push edx
call fcn.00401ac0
test ebx, ebx
mov eax, str.rav.xml
jne 0x40d26f
mov eax, str.rfwmain.xml
push eax
push 0x104
lea eax, [esp + 0x18]
push eax
call fcn.00401ac0
lea ecx, [esp + 0x578]
push ecx
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x40d2c9
test byte [esp + 0x578], 0x10
jne 0x40d2c9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0xc]
cmp eax, 0x7fffffff
ja 0x40d2bd
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call fcn.00401710
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret