Function at 0x40f560
Capabilities:
Get file attributes
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x426d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov eax, dword [0x42f4cc]
xor eax, esp
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2b8]
push edi
mov dword [esp + 0x2a8], eax
mov dword [esp + 0x44], ecx
call fcn.0040adf0
mov eax, dword [0x430588]
mov ecx, 0x430588
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
add esi, 0x22c
push esi
lea ecx, [esp + 0x28]
push str._sData
xor edi, edi
push ecx
mov dword [esp + 0x2c0], edi
call fcn.0040c120
mov edx, dword [0x430588]
add esp, 0xc
mov ecx, 0x430588
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 0x18]
push str._sRsMgrSvc.ini
push eax
mov byte [esp + 0x2c0], 1
call fcn.0040c120
mov byte [esp + 0x2a8], 0x5c
mov dword [esp + 0x2ac], edi
mov dword [esp + 0x2b0], edi
push str..
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2cc], 2
call fcn.0040c140
mov eax, dword [eax]
add esp, 0x18
push eax
lea ecx, [esp + 0x5c]
call fcn.00408400
mov esi, eax
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 0x40f663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, edi
je 0x40f9c5
mov eax, dword [esp + 0x2a4]
cmp eax, edi
je 0x40f99b
mov ecx, dword [esp + 0x58]
shr ecx, 4
and ecx, 1
cmp ecx, edi
je 0x40f99b
cmp byte [esp + 0x84], 0x2e
jne 0x40f6b9
mov cl, byte [esp + 0x85]
test cl, cl
je 0x40f99b
cmp cl, 0x2e
jne 0x40f6b9
mov cl, byte [esp + 0x86]
test cl, cl
je 0x40f99b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040b0d0
mov edx, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x2b4], 3
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ebp
push ebp
push eax
lea ecx, [esp + 0x5c]
push str._s_s_s.ini
push ecx
mov byte [esp + 0x2c8], 4
call fcn.0040c120
mov edx, dword [0x430588]
add esp, 0x14
mov ecx, 0x430588
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x50]
push eax
mov byte [esp + 0x2b8], 5
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x40f92f
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x40
or eax, ecx
jge 0x40f75f
push 0x40
lea ecx, [esp + 0x44]
call fcn.004085c0
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
push esi
push 0x428d90
push ebp
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, edi
jne 0x40f780
xor eax, eax
jmp 0x40f794
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f785
sub eax, edx
js 0x40fbd8
cmp eax, dword [esi - 8]
jg 0x40fbd8
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp dword [esi - 0xc], edi
jne 0x40f88c
push edi
call fcn.0041afba
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], eax
call fcn.0041abc1
add esp, 8
cmp eax, edi
je 0x40f7d4
mov eax, dword [eax]
mov dword [esp + 0x54], eax
jmp 0x40f7d8
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x48]
push ecx
call fcn.0041abc1
add esp, 4
cmp eax, edi
je 0x40f7f2
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
jmp 0x40f7f6
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x48]
push eax
call fcn.0041abc1
add esp, 4
cmp eax, edi
je 0x40f80a
mov ebx, dword [eax + 8]
lea ecx, [esp + 0x48]
push ecx
call fcn.0041abc1
add esp, 4
cmp eax, edi
je 0x40f81e
mov edi, dword [eax + 0xc]
lea edx, [esp + 0x48]
push edx
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40f835
mov esi, dword [eax + 0x10]
inc esi
jmp 0x40f837
xor esi, esi
lea eax, [esp + 0x48]
push eax
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40f852
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x40f854
xor eax, eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push ebx
push edi
push esi
push eax
lea eax, [esp + 0x58]
push str._.4d__.2d__.2d__.2d:_.2d:_.2d
push eax
call fcn.0040c120
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x60]
add esp, 0x20
push ecx
push esi
push ebp
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor edi, edi
mov eax, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
push str._d__d__d__d:_d:_d
push esi
mov dword [esp + 0x58], 0x7b3
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], edi
call fcn.0041aff6
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add esp, 0x20
or ebx, 0xffffffff
push ebx
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00407c00
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, 0x278d00
mov dword [esp + 0x28], edx
adc ecx, edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.0040c940
lea eax, [esi - 0x10]
mov byte [esp + 0x2b4], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x2b4], 3
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f975
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2b4], 2
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40f994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x2a0]
cmp ecx, edi
je 0x40f9cc
cmp eax, edi
je 0x40f9cc
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, edi
mov dword [esp + 0x2a4], eax
jne 0x40f67a
mov ecx, dword [esp + 0x2a0]
mov edx, dword [esp + 0x44]
cmp dword [edx + 8], edi
jne 0x40fbe2
mov eax, dword [0x430588]
mov ecx, 0x430588
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 4]
mov ebp, 1
mov ecx, ebp
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x40
or eax, ecx
mov bl, 6
mov byte [esp + 0x2b4], bl
jge 0x40fa1b
push 0x40
lea ecx, [esp + 0x14]
call fcn.004085c0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
push esi
push str.1971_01_01_00:00:00
push 0x429008
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, edi
jne 0x40fa40
xor eax, eax
jmp 0x40fa54
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fa45
sub eax, edx
js 0x40fbd8
cmp eax, dword [esi - 8]
jg 0x40fbd8
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
push ecx
push str._d__d__d__d:_d:_d
push esi
mov dword [esp + 0x54], 0x7b3
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
call fcn.0041aff6
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
add esp, 0x20
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00407c00
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, 0x15180
adc ecx, edi
mov dword [esp + 0x2c], ecx
push 0x429008
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edx
call fcn.0040d3a0
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x2bc], 7
call fcn.0040c940
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x2b4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [esp + 0x2b4], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fb5d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x2a0]
cmp eax, edi
mov dword [esp + 0x2a4], edi
je 0x40fb82
cmp eax, 0xffffffff
je 0x40fb82
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x2a0], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2b4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x2b4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40fc54
push 0x80070057
call fcn.004011d0
cmp ecx, edi
mov dword [esp + 0x2a4], edi
je 0x40fc00
cmp ecx, 0xffffffff
je 0x40fc00
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x2a0], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2b4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x2b4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x29c]
pop ebx
xor ecx, esp
call fcn.004199fa
add esp, 0x2a8
ret 4