Function at 0x475e00
Capabilities:
Check for time delay via gettickcount
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce6cc
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x504c94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0049d1fb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x475e4d
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x509ea8]
push edi
push ecx
lea edx, [ebp - 0x28]
push str.bInitialized_d__InitType_d
push edx
mov dword [ebp - 0x40], eax
call fcn.00466a00
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.004643c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475eb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
jne 0x475ec3
mov dword [0x509ea8], 1
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x475ed3
mov edi, dword [ebp + 8]
test edi, edi
je 0x475ee6
shl eax, 4
cmp dword [eax + 0x506584], edi
jne 0x476a18
mov ebx, dword [ebp - 0x24]
shl ebx, 4
mov edx, dword [ebx + 0x50658c]
mov eax, edx
mov dword [ebp - 0x1c], ebx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475f00
sub eax, edi
sar eax, 1
mov dword [ebp - 0x28], 0
cmp eax, 9
jbe 0x475f63
mov ecx, str._UnWow64_
lea eax, [edx + eax*2 - 0x12]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x475f4a
test dx, dx
je 0x475f46
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x475f4a
add eax, 4
add ecx, 4
test dx, dx
jne 0x475f24
xor eax, eax
jmp 0x475f4f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x475f63
call fcn.0046a120
test eax, eax
je 0x475f63
mov dword [ebp - 0x28], 1
mov eax, dword [ebx + 0x506584]
inc eax
cmp eax, 5
ja case.0x475f73.0
jmp dword [eax*4 + 0x476b38]
mov edx, dword [ebx + 0x506588]
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push edx
call fcn.0042341f
push ecx
mov edi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x38], edi
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x475e43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x4760a7
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov ebx, eax
test ebx, ebx
je 0x4760c1
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4760c1
push esi
push eax
push ebx
call fcn.004216fe
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4760c1
mov eax, dword [edi]
movzx esi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47603c
push esi
mov ecx, edi
call fcn.0042151d
movzx eax, word [ebx]
mov edx, dword [edi]
add ebx, 2
mov dword [ebp - 0x34], edx
cmp eax, 0xffffffff
jne 0x476056
push ebx
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push ebx
push ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x476230.1
movzx edx, byte [eax + 0x476b60]
jmp dword [edx*4 + 0x476b50]
test esi, esi
jl 0x476a4b
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x476a4b
mov edx, dword [ebp - 0x2c]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x4760c1
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.004ab8ea
add esp, 4
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, edi
call fcn.00423f13
mov byte [ebp - 4], 2
push SysReAllocStringLen
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004677d0
add esp, 0x18
test eax, eax
je 0x4768c1
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jle 0x476111
push 0x7e
push esi
call fcn.004ac398
add esp, 8
test eax, eax
je 0x476111
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x476111
lea eax, [ebp - 0x14]
push eax
call fcn.00469520
mov esi, dword [ebp - 0x14]
add esp, 4
push esi
call fcn.004ae389
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + 0x50658c]
add esp, 4
mov dword [ecx], eax
jmp 0x4768c4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x506588]
push 0
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0042341f
push ecx
mov byte [ebp - 4], 4
mov edi, esp
mov dword [ebp - 0x44], esp
mov dword [ebp - 0x30], edi
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x475e43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov byte [ebp - 4], 5
test ecx, 0xffff0000
jne 0x47625a
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a5121
mov ebx, eax
test ebx, ebx
je 0x476274
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x476274
push esi
push eax
push ebx
call fcn.004216fe
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x476274
mov eax, dword [edi]
movzx esi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x4761ef
push esi
mov ecx, edi
call fcn.0042151d
movzx eax, word [ebx]
mov edx, dword [edi]
add ebx, 2
mov dword [ebp - 0x2c], edx
cmp eax, 0xffffffff
jne 0x476209
push ebx
call fcn.004ab8ea
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push ebx
push ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x476230.1
movzx edx, byte [eax + 0x476bc4]
jmp dword [edx*4 + 0x476bb4]
test esi, esi
jl 0x476a4b
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x476a4b
mov edx, dword [ebp - 0x34]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x476274
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call fcn.004ab8ea
add esp, 4
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov ecx, edi
call fcn.00423f13
mov byte [ebp - 4], 6
call fcn.00478650
push eax
jmp 0x4760ca
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x4762a7
push 0x514
lea ecx, [ebp - 0x14]
call fcn.0042151d
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x506588]
push 0x514
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ab8cb
add esp, 8
test eax, eax
jl 0x476a4b
cmp eax, dword [esi - 8]
jg 0x476a4b
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jbe case.0x475f73.0
cmp dword [esi - 0xc], edx
jle 0x476317
push 0x7e
push esi
call fcn.004ac398
add esp, 8
test eax, eax
je 0x476317
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x476317
lea eax, [ebp - 0x14]
push eax
call fcn.00469520
mov esi, dword [ebp - 0x14]
add esp, 4
push esi
call fcn.004ae389
add esp, 4
mov dword [ebx + str.C:Program_Files__x86_], eax
jmp case.0x475f73.0
mov ecx, dword [ebx + 0x506580]
push str._MyExe_
push ecx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x4763e1
mov edx, dword [0x50a1a4]
cmp dword [edx - 0xc], eax
je 0x476359
mov eax, 0x50a1a4
jmp 0x47636d
lea eax, [ebp - 0x48]
push eax
call fcn.00465890
add esp, 4
mov byte [ebp - 4], 7
or dword [ebp - 0x18], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4763c4
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4763b4
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4763b4
push eax
call fcn.00423f84
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4763a9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
jmp 0x4763c4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423f13
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test byte [ebp - 0x18], 1
je 0x47657e
and dword [ebp - 0x18], 0xfffffffe
mov eax, dword [ebp - 0x48]
jmp 0x4764ed
mov ecx, dword [ebx + 0x506580]
push str._ExeDir_
push ecx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x47650b
mov eax, dword [0x50a1a4]
cmp dword [eax - 0xc], 0
je 0x476437
push 0x5c
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00423f84
lea edx, [ebp - 0x4c]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00467040
add esp, 0xc
mov byte [ebp - 4], 8
or dword [ebp - 0x18], 2
jmp 0x47644e
lea eax, [ebp - 0x3c]
push eax
call fcn.00465ab0
add esp, 4
mov dword [ebp - 4], 9
or dword [ebp - 0x18], 4
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x4764a5
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x476495
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x476495
push ecx
call fcn.00423f84
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x47648a
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
jmp 0x4764a5
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00423f13
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 8
test byte [ebp - 0x18], 4
je 0x4764d5
mov eax, dword [ebp - 0x3c]
and dword [ebp - 0x18], 0xfffffffb
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4764d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
test byte [ebp - 0x18], 2
je 0x47657e
and dword [ebp - 0x18], 0xfffffffd
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47657e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47657e
mov ecx, dword [ebx + 0x506580]
push str._AppID_
push ecx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x47657e
mov ecx, dword [0x50a154]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x47657e
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x47656e
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x47656e
push eax
call fcn.00423f84
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x476563
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
jmp 0x47657e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423f13
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jle 0x4765ab
push 0x7e
push esi
call fcn.004ac398
add esp, 8
test eax, eax
je 0x4765ab
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4765ab
lea ecx, [ebp - 0x14]
push ecx
call fcn.00469520
mov esi, dword [ebp - 0x14]
add esp, 4
push esi
call fcn.004ae389
add esp, 4
mov dword [ebx + str.C:Program_Files__x86_], eax
jmp case.0x475f73.0
mov edx, dword [ebx + 0x506580]
push str._Common_Profile_
push edx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x4766c1
push eax
push eax
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.Common_Desktop
lea esi, [ebp - 0x14]
call fcn.0042341f
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.0042341f
push SysReAllocStringLen
mov ebx, esi
mov byte [ebp - 4], 0
call fcn.004677d0
mov esi, dword [ebp - 0x14]
add esp, 0x18
push 0x5c
push ecx
lea ebx, [esi - 0x10]
mov dword [ebp - 0x30], esp
mov edi, esp
push ebx
call fcn.00423f84
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x54]
add esp, 4
push eax
call fcn.00467040
add esp, 0xc
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, ebx
je 0x476695
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x476685
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x476685
push eax
call fcn.00423f84
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x47667d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea esi, [edi + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x476695
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423f13
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4760e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4760e4
mov ecx, dword [ebx + 0x506580]
push str._Program_Files__x86__
push ecx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x4767b3
cmp dword [ebp - 0x24], eax
jne 0x4767b3
call fcn.0046a120
mov ecx, 1
sub ecx, dword [esi - 4]
test eax, eax
mov eax, dword [esi - 8]
je 0x476750
sub eax, 0x514
or eax, ecx
jge 0x476713
push 0x514
lea ecx, [ebp - 0x14]
call fcn.0042151d
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.ProgramFiles_x86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ab8cb
add esp, 8
test eax, eax
jl 0x476a4b
cmp eax, dword [esi - 8]
jg 0x476a4b
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x4760e4
sub eax, 0x514
or eax, ecx
jge 0x476769
push 0x514
lea ecx, [ebp - 0x14]
call fcn.0042151d
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ab8cb
add esp, 8
test eax, eax
jl 0x476a4b
cmp eax, dword [esi - 8]
jg 0x476a4b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push str.__x86_
lea ecx, [ebp - 0x14]
call fcn.00428f7c
jmp 0x4760e1
mov edx, dword [ebx + 0x506580]
push str._Program_Files_
push edx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x476869
cmp dword [ebp - 0x24], 1
jne 0x476869
call fcn.0046a120
mov ecx, 1
sub ecx, dword [esi - 4]
test eax, eax
mov eax, dword [esi - 8]
je 0x476813
sub eax, 0x514
or eax, ecx
jge 0x476806
push 0x514
lea ecx, [ebp - 0x14]
call fcn.0042151d
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.ProgramW6432
jmp 0x476837
sub eax, 0x514
or eax, ecx
jge 0x47682c
push 0x514
lea ecx, [ebp - 0x14]
call fcn.0042151d
mov esi, dword [ebp - 0x14]
push 0x514
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ab8cb
add esp, 8
test eax, eax
jl 0x476a4b
cmp eax, dword [esi - 8]
jg 0x476a4b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x4760e4
mov edx, dword [ebx + 0x506580]
push str._Scripts_
push edx
call fcn.004ab635
add esp, 8
test eax, eax
jne 0x4760e4
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x50658c]
lea eax, [eax + 0x50658c]
test esi, esi
jne 0x4768a9
xor eax, eax
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00423f13
jmp 0x4760e1
push esi
call fcn.004ab8ea
add esp, 4
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00423f13
jmp 0x4760e1
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x28], 0
je 0x476946
mov edi, dword [ebx + 0x50658c]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4768e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4768e0
sub eax, edx
sar eax, 1
mov ecx, str.__x86_
lea eax, [edi + eax*2 - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47691e
test dx, dx
je 0x47691a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47691e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4768f8
xor eax, eax
jmp 0x476923
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x476946
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x476930
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [edi + eax*2 - 0xc], cx
mov eax, dword [0x50a210]
cmp dword [eax - 0xc], 0
je 0x47696b
lea eax, [ebx + 0x50658c]
push eax
call fcn.00478720
mov eax, dword [0x50a210]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x476972
mov eax, 0x4d9c38
jmp 0x47698e
push eax
lea edx, [ebp - 0x20]
push str.__Forced_UserProfile_s
push edx
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 0xc
or dword [ebp - 0x18], 8
mov eax, dword [eax]
mov ecx, dword [ebx + 0x506580]
push eax
mov eax, dword [ebx + 0x50658c]
push eax
push ecx
lea edx, [ebp - 0x50]
push str._s___s_s
push edx
call fcn.00466a00
add esp, 0x14
mov dword [ebp - 4], 0xd
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.004643c0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4769e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
test byte [ebp - 0x18], 8
je 0x476a18
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x18], 0xfffffff7
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476a18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, 0x23
mov dword [ebp - 0x24], eax
jl 0x475ed0
mov eax, dword [0x50a20c]
cmp dword [eax - 0xc], 0
lea ecx, [ebp - 0x20]
jne 0x476a55
push ecx
call fcn.00468720
add esp, 4
jmp 0x476a64
call fcn.0049d763
call fcn.0049d79b
push 0x80070057
call fcn.00421000
push eax
push str.RegistryUser_s
push ecx
call fcn.00466a00
add esp, 0xc
mov eax, dword [eax]
push eax
call fcn.004ae389
mov dword [0x5067c0], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x476a93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x5067c0]
add ecx, 2
mov dword [0x5067d0], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x40]
lea edx, [ebp - 0x20]
push eax
push str.Took__dms
push edx
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.004643c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476af4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476b17
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret