Function at 0x40fc80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426d70
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 [0x430588]
mov ecx, 0x430588
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.0040c120
mov edx, dword [0x430588]
add esp, 0xc
mov ecx, 0x430588
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.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 + 0x70], 3
call fcn.0040c120
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 0x4101cb
cmp dword [ebx + 0x43c], ebp
jne 0x40fd8f
mov eax, dword [esp + 0x20]
mov ecx, eax
inc eax
cmp ecx, 0x1e
mov dword [esp + 0x20], eax
jbe 0x40fda9
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.0040f560
mov dword [esp + 0x28], eax
mov dword [ebx + 0x43c], ebp
mov dword [esp + 0x20], ebp
cmp dword [esp + 0x28], ebp
je 0x41003d
mov eax, dword [esp + 0x54]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x24], edi
jle 0x4101ac
test edi, edi
jl 0x41026c
cmp edi, eax
jge 0x41026c
mov eax, dword [esp + 0x50]
mov ebp, dword [eax + edi*8]
mov esi, dword [eax + edi*8 + 4]
push 0
call fcn.0041afba
add esp, 4
cmp edx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jl 0x410027
jg 0x40fe04
cmp eax, ebp
jbe 0x410027
mov eax, dword [0x430588]
mov ecx, 0x430588
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.0041abc1
add esp, 4
or esi, 0xffffffff
test eax, eax
je 0x40fe39
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
jmp 0x40fe3d
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x3c]
push eax
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40fe57
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
jmp 0x40fe5b
mov dword [esp + 0x30], esi
lea edx, [esp + 0x3c]
push edx
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40fe75
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
jmp 0x40fe79
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40fe8f
mov ebp, dword [eax + 0xc]
jmp 0x40fe91
xor ebp, ebp
lea edx, [esp + 0x3c]
push edx
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40fea8
mov esi, dword [eax + 0x10]
inc esi
jmp 0x40feaa
xor esi, esi
lea eax, [esp + 0x3c]
push eax
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x40fec5
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x40fec7
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.0040c120
mov eax, dword [esp + 0x74]
add esp, 0x20
cmp edi, eax
jge 0x41026c
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 0x40ff24
cmp eax, dword [esi]
jne 0x40ff24
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ff56
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x410267
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 [0x430588]
mov ecx, 0x430588
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.0040c120
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
call fcn.0040a130
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 0x40ffe5
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 0x410004
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 0x410023
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 0x40fdc5
jmp 0x4101ac
cmp dword [esp + 0x54], ebp
push ebp
jle 0x41027d
mov eax, dword [esp + 0x54]
mov edi, dword [eax]
mov esi, dword [eax + 4]
call fcn.0041afba
add esp, 4
cmp edx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jl 0x4101ac
jg 0x410073
cmp eax, edi
jbe 0x4101ac
mov eax, dword [0x430588]
mov ecx, 0x430588
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.0041abc1
add esp, 4
cmp eax, ebp
je 0x4100a5
mov edx, dword [eax]
mov dword [esp + 0x38], edx
jmp 0x4100ad
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.0041abc1
add esp, 4
cmp eax, ebp
je 0x4100c7
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
jmp 0x4100cf
mov dword [esp + 0x34], 0xffffffff
lea edx, [esp + 0x44]
push edx
call fcn.0041abc1
add esp, 4
cmp eax, ebp
je 0x4100e5
mov ebp, dword [eax + 8]
jmp 0x4100e8
or ebp, 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x4100fe
mov edi, dword [eax + 0xc]
jmp 0x410100
xor edi, edi
lea ecx, [esp + 0x44]
push ecx
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x410117
mov esi, dword [eax + 0x10]
inc esi
jmp 0x410119
xor esi, esi
lea edx, [esp + 0x44]
push edx
call fcn.0041abc1
add esp, 4
test eax, eax
je 0x410134
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x410136
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.0040c120
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add esp, 0x20
push 0xffffffffffffffff
push ecx
push edx
mov ecx, ebx
call fcn.0040a130
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push eax
push esi
push 0x429008
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 0x4101ac
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 0x40fd77
mov eax, dword [ebx + 0x438]
cmp eax, ebp
je 0x4101e2
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 0x410205
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 0x410228
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 0x41024b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x4c]
call fcn.0040adf0
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.00407eb0
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]