Function at 0x415d60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x503bdc
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x49c]
mov eax, dword [ebp + 0x2c]
sub eax, 0x10
call fcn.00408780
add eax, 0x10
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x494], 0
call fcn.00417740
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
add eax, eax
push eax
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.00477c59
push 0x410
lea ecx, [esp + 0x7c]
push 0
push ecx
mov byte [esp + 0x4a4], 1
call fcn.004d7710
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x78]
push eax
push 0
push ecx
push str.SOFTWARE360SoftMgrmessagecache
push SysReAllocString
mov dword [esp + 0x38], 0x410
call esi
test eax, eax
jne 0x415ff8
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415ff8
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
je 0x415ff8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415e57
sub eax, edx
sar eax, 1
cmp eax, 0x20
jb 0x415ff8
push 0x42
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.004d7710
push 0x20
push ebx
lea edx, [esp + 0x40]
push 0x21
push edx
call fcn.004cc246
mov ecx, dword [ebp + 0x1d0]
lea eax, [ebp + 0x1d0]
add esp, 0x1c
cmp dword [ecx - 0xc], 0
je 0x415ee8
push eax
lea ecx, [esp + 0x30]
call fcn.004047b0
test eax, eax
je 0x415f5a
lea edx, [esp + 0x74]
push edx
push str.script__s_md5____package
call fcn.00401f50
mov edx, 0x515e64
mov ecx, eax
call fcn.00401fd0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004087f0
lea ecx, [esp + 0x1c]
call fcn.004087f0
jmp 0x416047
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, str._time
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 4
call fcn.00404810
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push str.SOFTWARE360SoftMgrmessagecache
push SysReAllocString
call esi
lea ecx, [esp + 0x24]
call fcn.004087f0
push 0
call fcn.004cbb5a
mov ecx, dword [esp + 0x1c]
add esp, 4
xor esi, esi
sub eax, ecx
sbb edx, esi
mov dword [esp + 0x28], edx
js 0x415f5a
jg 0x415ed1
cmp eax, 0x15180
ja 0x415ed1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x78]
call fcn.004085e0
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x498], 2
call fcn.00477ba8
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x498], 3
call fcn.004047b0
test eax, eax
mov ecx, esi
sete bl
call fcn.004087f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x494], 1
call fcn.004087f0
test bl, bl
je 0x415ff8
lea esi, [esp + 0x74]
mov ebx, ebp
call fcn.004158b0
test eax, eax
je 0x415ff8
mov ecx, esi
push ecx
push str.script__s
call fcn.00401f50
mov edx, 0x515e64
mov ecx, eax
call fcn.00401fd0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004087f0
lea ecx, [esp + 0x1c]
call fcn.004087f0
mov eax, 1
jmp 0x416049
mov byte [esp + 0x494], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416020
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x494], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416047
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004cb38b
add esp, 0x484
ret 4