Function at 0x47b8e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 0xc]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
test eax, eax
jle 0x47bb9f
mov esi, dword [esp + 0x28]
test esi, esi
jl 0x47bb9f
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x54ffc8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x54ffc8
call edx
push esi
add eax, 0x10
push str.look_
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push str._s_d
push eax
call fcn.0043a600
mov edx, dword [0x54ffc8]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x54ffc8
call eax
push esi
push str.show_
lea ecx, [esp + 0x18]
add eax, 0x10
push str._s_d
push ecx
mov dword [esp + 0x20], eax
call fcn.0043a600
mov edx, dword [0x54ffc8]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x54ffc8
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
add eax, 0x10
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 0x51710c
push eax
call fcn.0043a600
add esp, 0xc
mov ecx, esp
push str..ini
call fcn.0043a930
push ecx
mov ecx, esp
push 0x5188a4
call fcn.0043a930
mov edi, dword [esp + 0x20]
push ecx
add edi, 0xfffffff0
mov esi, esp
push edi
call fcn.00439080
lea ecx, [esp + 0x24]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0045bab0
add esp, 0x10
test eax, eax
je 0x47bb1d
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47ba13
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x47ba13
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x2c], 0
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
je 0x47ba3a
mov edx, dword [esp + 0x2c]
push 0x5188a0
push edx
push 0x518898
call ebp
push esi
push 0x5188a0
jmp 0x47ba51
mov eax, dword [esp + 0x2c]
push 0x518894
push eax
push 0x518898
call ebp
push esi
push 0x518894
mov ebx, dword [esp + 0x18]
push ebx
push 0x518898
call ebp
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ba76
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47ba92
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bace
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x47baee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bb0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bb36
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bb56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bb76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x47bb96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x47bba2
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bbbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47bbdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x10