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

Disassembly:
push 0xffffffffffffffff
push 0x4229f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov eax, dword [0x42b48c]
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.00407640
mov eax, dword [0x42c534]
mov ecx, 0x42c534
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.00408960
mov edx, dword [0x42c534]
add esp, 0xc
mov ecx, 0x42c534
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.00408960
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.00408980
mov eax, dword [eax]
add esp, 0x18
push eax
lea ecx, [esp + 0x5c]
call fcn.00404c60
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 0x40bdf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, edi
je 0x40c155
mov eax, dword [esp + 0x2a4]
cmp eax, edi
je 0x40c12b
mov ecx, dword [esp + 0x58]
shr ecx, 4
and ecx, 1
cmp ecx, edi
je 0x40c12b
cmp byte [esp + 0x84], 0x2e
jne 0x40be49
mov cl, byte [esp + 0x85]
test cl, cl
je 0x40c12b
cmp cl, 0x2e
jne 0x40be49
mov cl, byte [esp + 0x86]
test cl, cl
je 0x40c12b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
call fcn.00407920
mov edx, dword [0x42c534]
mov ecx, 0x42c534
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.00408960
mov edx, dword [0x42c534]
add esp, 0x14
mov ecx, 0x42c534
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 0x40c0bf
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x40
or eax, ecx
jge 0x40beef
push 0x40
lea ecx, [esp + 0x44]
call fcn.00404e20
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
push esi
push 0x424a04
push ebp
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, edi
jne 0x40bf10
xor eax, eax
jmp 0x40bf24
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bf15
sub eax, edx
js 0x40c368
cmp eax, dword [esi - 8]
jg 0x40c368
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp dword [esi - 0xc], edi
jne 0x40c01c
push edi
call fcn.00416e5a
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], eax
call fcn.00416a61
add esp, 8
cmp eax, edi
je 0x40bf64
mov eax, dword [eax]
mov dword [esp + 0x54], eax
jmp 0x40bf68
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x48]
push ecx
call fcn.00416a61
add esp, 4
cmp eax, edi
je 0x40bf82
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
jmp 0x40bf86
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x48]
push eax
call fcn.00416a61
add esp, 4
cmp eax, edi
je 0x40bf9a
mov ebx, dword [eax + 8]
lea ecx, [esp + 0x48]
push ecx
call fcn.00416a61
add esp, 4
cmp eax, edi
je 0x40bfae
mov edi, dword [eax + 0xc]
lea edx, [esp + 0x48]
push edx
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40bfc5
mov esi, dword [eax + 0x10]
inc esi
jmp 0x40bfc7
xor esi, esi
lea eax, [esp + 0x48]
push eax
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40bfe2
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x40bfe4
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.00408960
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.00416e96
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.004043a0
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.00409180
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 0x40c0e0
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 0x40c105
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 0x40c124
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 0x40c15c
cmp eax, edi
je 0x40c15c
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, edi
mov dword [esp + 0x2a4], eax
jne 0x40be0a
mov ecx, dword [esp + 0x2a0]
mov edx, dword [esp + 0x44]
cmp dword [edx + 8], edi
jne 0x40c372
mov eax, dword [0x42c534]
mov ecx, 0x42c534
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 0x40c1ab
push 0x40
lea ecx, [esp + 0x14]
call fcn.00404e20
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 0x424c80
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, edi
jne 0x40c1d0
xor eax, eax
jmp 0x40c1e4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1d5
sub eax, edx
js 0x40c368
cmp eax, dword [esi - 8]
jg 0x40c368
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.00416e96
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.004043a0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, 0x15180
adc ecx, edi
mov dword [esp + 0x2c], ecx
push 0x424c80
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edx
call fcn.00409be0
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x2bc], 7
call fcn.00409180
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 0x40c2cb
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 0x40c2ed
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 0x40c312
cmp eax, 0xffffffff
je 0x40c312
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 0x40c338
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 0x40c361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40c3e4
push 0x80070057
call fcn.004011d0
cmp ecx, edi
mov dword [esp + 0x2a4], edi
je 0x40c390
cmp ecx, 0xffffffff
je 0x40c390
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 0x40c3b6
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 0x40c3df
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.00415d1a
add esp, 0x2a8
ret 4