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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2934
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x50cc94]
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 esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.004a1286
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47923d
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x511ea8]
push esi
push ecx
lea edx, [ebp - 0x30]
push str.bInitialized_d__InitType_d
push edx
mov dword [ebp - 0x44], eax
call fcn.00468c80
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.00466250
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4792a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jne 0x4792b3
mov dword [0x511ea8], 1
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4792c3
mov esi, dword [ebp + 8]
test esi, esi
je 0x4792d6
shl eax, 4
cmp dword [eax + 0x50e584], esi
jne 0x479ef8
mov edi, dword [ebp - 0x24]
shl edi, 4
mov edx, dword [edi + 0x50e58c]
mov eax, edx
mov dword [ebp - 0x1c], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4792f0
sub eax, esi
sar eax, 1
mov dword [ebp - 0x30], 0
cmp eax, 9
jbe 0x479353
mov ecx, str._UnWow64_
lea eax, [edx + eax*2 - 0x12]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47933a
test dx, dx
je 0x479336
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47933a
add eax, 4
add ecx, 4
test dx, dx
jne 0x479314
xor eax, eax
jmp 0x47933f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x479353
call fcn.0046cd10
test eax, eax
je 0x479353
mov dword [ebp - 0x30], 1
mov eax, dword [edi + 0x50e584]
inc eax
cmp eax, 5
ja case.0x479363.0
jmp dword [eax*4 + 0x47a018]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x50e588]
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.004235f2
push ecx
mov edi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x38], edi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x479233
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 0x47949a
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a91be
mov ebx, eax
test ebx, ebx
je 0x4794b4
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 0x4794b4
push esi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4794b4
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 0x47942f
push esi
mov ecx, edi
call fcn.00421527
movzx eax, word [ebx]
mov edx, dword [edi]
add ebx, 2
mov dword [ebp - 0x34], edx
cmp eax, 0xffffffff
jne 0x479449
push ebx
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push ebx
push ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x479687.1
movzx edx, byte [eax + 0x47a040]
jmp dword [edx*4 + 0x47a030]
test esi, esi
jl 0x479f2b
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x479f2b
mov edx, dword [ebp - 0x28]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x4794b4
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.004af97a
add esp, 4
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ecx, edi
call fcn.0042423a
mov byte [ebp - 4], 2
push SysReAllocStringLen
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00469a50
mov ebx, dword [ebp - 0x14]
add esp, 0x18
test eax, eax
je 0x479514
cmp dword [ebx - 0xc], 0
jle 0x479500
push 0x7e
push ebx
call fcn.004b0428
add esp, 8
test eax, eax
je 0x479500
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x479500
lea eax, [ebp - 0x14]
push eax
call fcn.0046c0c0
mov ebx, dword [ebp - 0x14]
add esp, 4
push ebx
call fcn.004b2419
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + 0x50e58c]
add esp, 4
mov dword [ecx], eax
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], 0
je 0x479e26
mov esi, dword [edi + 0x50e58c]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479530
sub eax, edx
sar eax, 1
mov ecx, str.__x86_
lea eax, [esi + eax*2 - 0xc]
jmp 0x479550
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x479dff
test dx, dx
je 0x47957a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x479dff
add eax, 4
add ecx, 4
test dx, dx
jne 0x479550
xor eax, eax
jmp 0x479e04
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x50e588]
push 0
push 0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.004235f2
push ecx
mov byte [ebp - 4], 4
mov edi, esp
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x2c], edi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x479233
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 0x4796b1
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a91be
mov ebx, eax
test ebx, ebx
je 0x4796cb
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 0x4796cb
push esi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4796cb
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 0x479646
push esi
mov ecx, edi
call fcn.00421527
movzx eax, word [ebx]
mov edx, dword [edi]
add ebx, 2
mov dword [ebp - 0x28], edx
cmp eax, 0xffffffff
jne 0x479660
push ebx
call fcn.004af97a
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 - 0x28]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x479687.1
movzx edx, byte [eax + 0x47a0a4]
jmp dword [edx*4 + 0x47a094]
test esi, esi
jl 0x479f2b
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x479f2b
mov edx, dword [ebp - 0x34]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x4796cb
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call fcn.004af97a
add esp, 4
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov ecx, edi
call fcn.0042423a
mov byte [ebp - 4], 6
call fcn.0047bf30
push eax
jmp 0x4794bd
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x514
or eax, ecx
jge 0x4796fe
push 0x514
lea ecx, [ebp - 0x14]
call fcn.00421527
mov ebx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x50e588]
push 0x514
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004af95b
add esp, 8
test eax, eax
jl 0x479f2b
cmp eax, dword [ebx - 8]
jg 0x479f2b
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
test esi, esi
jbe case.0x479363.0
cmp dword [ebx - 0xc], edx
jle 0x47976e
push 0x7e
push ebx
call fcn.004b0428
add esp, 8
test eax, eax
je 0x47976e
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x47976e
lea eax, [ebp - 0x14]
push eax
call fcn.0046c0c0
mov ebx, dword [ebp - 0x14]
add esp, 4
push ebx
call fcn.004b2419
add esp, 4
mov dword [edi + str.C:Program_Files__x86_], eax
jmp case.0x479363.0
mov ecx, dword [edi + 0x50e580]
push str._MyExe_
push ecx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479838
mov edx, dword [0x5121f4]
cmp dword [edx - 0xc], eax
je 0x4797b0
mov eax, 0x5121f4
jmp 0x4797c4
lea eax, [ebp - 0x4c]
push eax
call fcn.00467720
add esp, 4
mov byte [ebp - 4], 7
or dword [ebp - 0x18], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x47981b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x47980b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47980b
push eax
call fcn.004242ab
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x479800
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [edi + 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
jmp 0x47981b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042423a
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test byte [ebp - 0x18], 1
je 0x4799d5
and dword [ebp - 0x18], 0xfffffffe
mov eax, dword [ebp - 0x4c]
jmp 0x479944
mov ecx, dword [edi + 0x50e580]
push str._ExeDir_
push ecx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479962
mov eax, dword [0x5121f4]
cmp dword [eax - 0xc], 0
je 0x47988e
push 0x5c
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
call fcn.004242ab
lea edx, [ebp - 0x48]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.004692c0
add esp, 0xc
mov byte [ebp - 4], 8
or dword [ebp - 0x18], 2
jmp 0x4798a5
lea eax, [ebp - 0x40]
push eax
call fcn.00467940
add esp, 4
mov dword [ebp - 4], 9
or dword [ebp - 0x18], 4
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea esi, [ebx - 0x10]
cmp ecx, esi
je 0x4798fc
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4798ec
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x4798ec
push ecx
call fcn.004242ab
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4798e1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [edi + 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
jmp 0x4798fc
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0042423a
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 8
test byte [ebp - 0x18], 4
je 0x47992c
mov eax, dword [ebp - 0x40]
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 0x47992c
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 0x4799d5
and dword [ebp - 0x18], 0xfffffffd
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4799d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4799d5
mov ecx, dword [edi + 0x50e580]
push str._AppID_
push ecx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x4799d5
mov ecx, dword [0x51219c]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4799d5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4799c5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4799c5
push eax
call fcn.004242ab
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4799ba
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [edi + 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
jmp 0x4799d5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042423a
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jle 0x479a02
push 0x7e
push ebx
call fcn.004b0428
add esp, 8
test eax, eax
je 0x479a02
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x479a02
lea ecx, [ebp - 0x14]
push ecx
call fcn.0046c0c0
mov ebx, dword [ebp - 0x14]
add esp, 4
push ebx
call fcn.004b2419
add esp, 4
mov dword [edi + str.C:Program_Files__x86_], eax
jmp case.0x479363.0
mov edx, dword [edi + 0x50e580]
push str._Common_Profile_
push edx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479b00
push eax
push eax
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Common_Desktop
lea ebx, [ebp - 0x14]
call fcn.004235f2
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.004235f2
push SysReAllocStringLen
mov byte [ebp - 4], 0
call fcn.00469a50
mov ebx, dword [ebp - 0x14]
add esp, 0x18
push 0x5c
push ecx
lea edi, [ebx - 0x10]
mov dword [ebp - 0x2c], esp
mov esi, esp
push edi
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x50]
add esp, 4
push eax
call fcn.004692c0
add esp, 0xc
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, edi
je 0x479af4
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x479ae4
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x479ae4
push eax
call fcn.004242ab
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x479ad2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], ebx
jmp 0x479d69
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042423a
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x50]
jmp 0x479d69
mov ecx, dword [edi + 0x50e580]
push str._Program_Files__x86__
push ecx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479bf2
cmp dword [ebp - 0x24], eax
jne 0x479bf2
call fcn.0046cd10
mov ecx, 1
sub ecx, dword [ebx - 4]
test eax, eax
mov eax, dword [ebx - 8]
je 0x479b8f
sub eax, 0x514
or eax, ecx
jge 0x479b52
push 0x514
lea ecx, [ebp - 0x14]
call fcn.00421527
mov ebx, dword [ebp - 0x14]
push 0x514
push ebx
push str.ProgramFiles_x86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004af95b
add esp, 8
test eax, eax
jl 0x479f2b
cmp eax, dword [ebx - 8]
jg 0x479f2b
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
jmp 0x479dcc
sub eax, 0x514
or eax, ecx
jge 0x479ba8
push 0x514
lea ecx, [ebp - 0x14]
call fcn.00421527
mov ebx, dword [ebp - 0x14]
push 0x514
push ebx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004af95b
add esp, 8
test eax, eax
jl 0x479f2b
cmp eax, dword [ebx - 8]
jg 0x479f2b
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
push str.__x86_
lea ecx, [ebp - 0x14]
call fcn.00429844
jmp 0x479dc9
mov edx, dword [edi + 0x50e580]
push str._Program_Files_
push edx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479ca8
cmp dword [ebp - 0x24], 1
jne 0x479ca8
call fcn.0046cd10
mov ecx, 1
sub ecx, dword [ebx - 4]
test eax, eax
mov eax, dword [ebx - 8]
je 0x479c52
sub eax, 0x514
or eax, ecx
jge 0x479c45
push 0x514
lea ecx, [ebp - 0x14]
call fcn.00421527
mov ebx, dword [ebp - 0x14]
push 0x514
push ebx
push str.ProgramW6432
jmp 0x479c76
sub eax, 0x514
or eax, ecx
jge 0x479c6b
push 0x514
lea ecx, [ebp - 0x14]
call fcn.00421527
mov ebx, dword [ebp - 0x14]
push 0x514
push ebx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004af95b
add esp, 8
test eax, eax
jl 0x479f2b
cmp eax, dword [ebx - 8]
jg 0x479f2b
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
jmp 0x479dcc
mov edx, dword [edi + 0x50e588]
push str.AppDataXP
push edx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479d87
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4dec30
call fcn.004235f2
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Application_Data
call fcn.004235f2
push ecx
mov byte [ebp - 4], 0xd
mov eax, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.0046fd70
add esp, 4
lea edi, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004687d0
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x479d62
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x479d52
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x479d52
push eax
call fcn.004242ab
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x479d4a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x479d62
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042423a
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479dcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x479dcc
mov ecx, dword [edi + 0x50e580]
push str._Scripts_
push ecx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x479dcc
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x50e58c]
lea eax, [eax + 0x50e58c]
test esi, esi
jne 0x479db6
xor eax, eax
jmp 0x479dbf
push esi
call fcn.004af97a
add esp, 4
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0042423a
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jle 0x479500
push 0x7e
push ebx
call fcn.004b0428
add esp, 8
test eax, eax
je 0x479500
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x479500
lea edx, [ebp - 0x14]
push edx
jmp 0x4794f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x479e26
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479e10
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 0xc], cx
mov eax, dword [0x512268]
cmp dword [eax - 0xc], 0
je 0x479e4b
lea eax, [edi + 0x50e58c]
push eax
call fcn.0047c000
mov eax, dword [0x512268]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x479e52
mov eax, 0x4e0608
jmp 0x479e6e
push eax
lea edx, [ebp - 0x20]
push str.__Forced_UserProfile_s
push edx
call fcn.00468c80
add esp, 0xc
mov byte [ebp - 4], 0xf
or dword [ebp - 0x18], 8
mov eax, dword [eax]
mov ecx, dword [edi + 0x50e580]
push eax
mov eax, dword [edi + 0x50e58c]
push eax
push ecx
lea edx, [ebp - 0x54]
push str._s___s_s
push edx
call fcn.00468c80
add esp, 0x14
mov dword [ebp - 4], 0x10
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.00466250
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479ec8
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 0x479ef8
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 0x479ef8
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, 0x24
mov dword [ebp - 0x24], eax
jl 0x4792c0
mov eax, dword [0x512264]
cmp dword [eax - 0xc], 0
lea ecx, [ebp - 0x20]
jne 0x479f35
push ecx
call fcn.0046a9a0
add esp, 4
jmp 0x479f44
call fcn.004a17ee
call fcn.004a1826
push 0x80070057
call fcn.00421000
push eax
push str.RegistryUser_s
push ecx
call fcn.00468c80
add esp, 0xc
mov eax, dword [eax]
push eax
call fcn.004b2419
mov dword [0x50e7d0], 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 0x479f73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x50e7d0]
add ecx, 2
mov dword [0x50e7e0], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push eax
push str.Took__dms
push edx
call fcn.00468c80
add esp, 0xc
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.00466250
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 0x479fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479ff7
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
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.004af011
mov esp, ebp
pop ebp
ret