Function at 0x40c410
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov dword [esp + 0x64], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea esi, [ebx + 0x22c]
push esi
lea ecx, [esp + 0x20]
push str._sUpdater.exe
push ecx
mov byte [esp + 0x70], 1
call fcn.00408960
mov edx, dword [0x42c534]
add esp, 0xc
mov ecx, 0x42c534
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 0x1c]
push str.__sUpdater.exe___silence
push eax
mov byte [esp + 0x70], 2
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 + 0x70], 3
call fcn.00408960
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebx + 0x224]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c95b
cmp dword [ebx + 0x43c], ebp
jne 0x40c51f
mov eax, dword [esp + 0x20]
mov ecx, eax
inc eax
cmp ecx, 0x1e
mov dword [esp + 0x20], eax
jbe 0x40c539
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.0040bcf0
mov dword [esp + 0x28], eax
mov dword [ebx + 0x43c], ebp
mov dword [esp + 0x20], ebp
cmp dword [esp + 0x28], ebp
je 0x40c7cd
mov eax, dword [esp + 0x54]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x24], edi
jle 0x40c93c
test edi, edi
jl 0x40c9fc
cmp edi, eax
jge 0x40c9fc
mov eax, dword [esp + 0x50]
mov ebp, dword [eax + edi*8]
mov esi, dword [eax + edi*8 + 4]
push 0
call fcn.00416e5a
add esp, 4
cmp edx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jl 0x40c7b7
jg 0x40c594
cmp eax, ebp
jbe 0x40c7b7
mov eax, dword [0x42c534]
mov ecx, 0x42c534
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x68], 4
call fcn.00416a61
add esp, 4
or esi, 0xffffffff
test eax, eax
je 0x40c5c9
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
jmp 0x40c5cd
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x3c]
push eax
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c5e7
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
jmp 0x40c5eb
mov dword [esp + 0x30], esi
lea edx, [esp + 0x3c]
push edx
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c605
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
jmp 0x40c609
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c61f
mov ebp, dword [eax + 0xc]
jmp 0x40c621
xor ebp, ebp
lea edx, [esp + 0x3c]
push edx
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c638
mov esi, dword [eax + 0x10]
inc esi
jmp 0x40c63a
xor esi, esi
lea eax, [esp + 0x3c]
push eax
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c655
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x40c657
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
push ebp
push esi
push eax
lea edx, [esp + 0x50]
push str._.4d__.2d__.2d__.2d:_.2d:_.2d
push edx
call fcn.00408960
mov eax, dword [esp + 0x74]
add esp, 0x20
cmp edi, eax
jge 0x40c9fc
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + edi*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40c6b4
cmp eax, dword [esi]
jne 0x40c6b4
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40c6e6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x40c9f7
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov eax, dword [0x42c534]
mov ecx, 0x42c534
mov byte [esp + 0x64], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x3c]
push str._s__subkey__s__RsMgrSvc
push edx
mov byte [esp + 0x74], 6
call fcn.00408960
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
call fcn.00406990
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x38]
push ecx
push ebp
push esi
push str.Update
mov dword [ebx + 0x43c], 1
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [edi - 0x10]
mov byte [esp + 0x64], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x64], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
mov dword [esp + 0x24], edi
jl 0x40c555
jmp 0x40c93c
cmp dword [esp + 0x54], ebp
push ebp
jle 0x40ca0d
mov eax, dword [esp + 0x54]
mov edi, dword [eax]
mov esi, dword [eax + 4]
call fcn.00416e5a
add esp, 4
cmp edx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jl 0x40c93c
jg 0x40c803
cmp eax, edi
jbe 0x40c93c
mov eax, dword [0x42c534]
mov ecx, 0x42c534
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x68], 7
call fcn.00416a61
add esp, 4
cmp eax, ebp
je 0x40c835
mov edx, dword [eax]
mov dword [esp + 0x38], edx
jmp 0x40c83d
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.00416a61
add esp, 4
cmp eax, ebp
je 0x40c857
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
jmp 0x40c85f
mov dword [esp + 0x34], 0xffffffff
lea edx, [esp + 0x44]
push edx
call fcn.00416a61
add esp, 4
cmp eax, ebp
je 0x40c875
mov ebp, dword [eax + 8]
jmp 0x40c878
or ebp, 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c88e
mov edi, dword [eax + 0xc]
jmp 0x40c890
xor edi, edi
lea ecx, [esp + 0x44]
push ecx
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c8a7
mov esi, dword [eax + 0x10]
inc esi
jmp 0x40c8a9
xor esi, esi
lea edx, [esp + 0x44]
push edx
call fcn.00416a61
add esp, 4
test eax, eax
je 0x40c8c4
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x40c8c6
xor eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
push ebp
push edi
push esi
push eax
lea eax, [esp + 0x48]
push str._.4d__.2d__.2d__.2d:_.2d:_.2d
push eax
call fcn.00408960
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add esp, 0x20
push 0xffffffffffffffff
push ecx
push edx
mov ecx, ebx
call fcn.00406990
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push eax
push esi
push 0x424c80
push str.Update
mov dword [ebx + 0x43c], 1
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esi - 0x10]
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c93c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0x224]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebp, ebp
cmp eax, 0x102
je 0x40c507
mov eax, dword [ebx + 0x438]
cmp eax, ebp
je 0x40c972
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x438], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c995
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x4c]
call fcn.00407640
mov ecx, dword [esp + 0x5c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00401370
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
push ebp
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]