Function at 0x450060
Capabilities:
Check if file exists
Create directory
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd412
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x4fe0a8]
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, ecx
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 4], 0
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x4509e2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
push 0
push 0xa
mov ecx, esi
call fcn.00452060
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x188], eax
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
lea eax, [esi + 4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push ecx
mov ecx, eax
movq qword [ebp - 0x30], xmm0
call fcn.00456520
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
sub eax, ebx
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4501de
nop dword [eax]
cmp dword [ebx + 0x14], 8
mov esi, ebx
jb 0x45015a
mov esi, dword [ebx]
push ecx
mov dword [ebp - 0x1d0], esp
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x4509e2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x1d0]
add eax, 0x10
mov dword [ecx], eax
push esi
mov byte [ebp - 4], 6
call fcn.004046b0
test al, al
jne 0x4501bc
test esi, esi
jne 0x450196
xor ecx, ecx
jmp 0x4501af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4501a0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1d0]
push esi
call fcn.00404980
mov byte [ebp - 4], 4
call fcn.00456d70
mov ecx, dword [ebp - 0x14]
add ebx, 0x18
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x450150
mov esi, dword [ebp - 0x1cc]
call fcn.00457070
lea ecx, [esi + 4]
call fcn.00453080
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00457710
cmp dword [esi + 0x138], 8
lea eax, [esi + 0x124]
mov dword [ebp - 0x1d4], eax
mov ecx, eax
jb 0x450210
mov ecx, dword [eax]
push ecx
push 1
push ecx
call fcn.00453220
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004525d0
or ebx, 0xffffffff
mov dword [ebp - 0x1d0], eax
test eax, eax
js 0x450962
cmp dword [ebp + 0x28], 0
je 0x450240
call fcn.004520d0
push 1
push 0x1e
mov ecx, esi
call fcn.00452060
mov ecx, esi
call fcn.00451290
mov dword [ebp - 0x1d0], eax
test eax, eax
js 0x450962
push 3
push 0x32
mov ecx, esi
call fcn.00452060
cmp dword [esi + 0x138], 8
lea eax, [esi + 0x124]
jb 0x450280
mov eax, dword [esi + 0x124]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x138], 8
lea ecx, [esi + 0x124]
jb 0x4502a0
mov ecx, dword [esi + 0x124]
add esi, 0x10c
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4502b0
mov eax, dword [esi]
push ecx
push eax
call fcn.00453bb0
cmp dword [esi + 0x14], 8
jb 0x4502bf
mov esi, dword [esi]
push ecx
push 0
push esi
call fcn.00453220
mov esi, dword [ebp - 0x1cc]
mov ecx, esi
push 2
push 0x3c
call fcn.00452060
cmp dword [ebp + 0x18], 0
je 0x450324
cmp dword [ebp + 0xc], 0
jne 0x450324
push ecx
mov esi, esp
mov dword [ebp - 0x1d8], esi
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404490
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x1cc]
mov ecx, esi
push 0
call fcn.00451690
mov dword [ebp - 0x1d0], eax
test eax, eax
js 0x450962
jmp 0x45044f
call fcn.00459650
cmp dword [ebp + 0x3c], 0
jne 0x450339
cmp dword [ebp + 0xc], 0
je 0x45044f
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c4]
push eax
call fcn.00454550
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
mov esi, dword [0x51350c]
cmovae eax, dword [ebp - 0x14c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c8], 0
test esi, esi
je 0x45037d
lock inc dword [esi + 4]
mov esi, dword [0x51350c]
mov ecx, dword [0x513508]
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 4], 8
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
lea ecx, [ebp - 0x1c8]
push ecx
push 0xf003f
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4503d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4503f7
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4503f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4503f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
jne 0x45042e
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450405
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x1c8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 3
call fcn.00450a10
mov esi, dword [ebp - 0x1cc]
cmp dword [ebp + 0x38], 0
je 0x45045a
call fcn.00459890
push 5
push 0x46
mov ecx, esi
call fcn.00452060
cmp dword [ebp + 0x20], 0
je 0x450478
cmp dword [ebp + 0xc], 0
jne 0x450478
mov ecx, esi
call fcn.00451ea0
push 8
push 0x46
mov ecx, esi
call fcn.00452060
cmp dword [ebp + 0x34], 0
je 0x450691
cmp dword [ebp + 0xc], 0
jne 0x450691
lea ecx, [ebp - 0xbc]
call fcn.0044f9e0
mov eax, ecx
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
mov ecx, esi
call fcn.00450c40
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00404e40
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00404e40
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x18]
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0045c750
add esp, 4
mov dword [ebp - 0x24], 0
mov edx, 0x4e6dcc
lea ecx, [ebp - 0x24]
call fcn.00474770
mov byte [ebp - 4], 0xd
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x4509ec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push 0x4e6ef4
push eax
call fcn.0041a070
mov eax, dword [0x51350c]
add esp, 0xc
mov dword [ebp - 0x1c8], eax
test eax, eax
je 0x450558
lock inc dword [eax + 4]
mov eax, dword [0x51350c]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [0x513508]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x1d8]
mov eax, dword [ecx]
push edx
call dword [eax + 0xf4]
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
push esi
push str.isassoccadfile
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x1d8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4505a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c8]
test ecx, ecx
je 0x4505d3
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x4505d3
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1c8]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x4505d3
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4505ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45060c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45062a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450648
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x450663
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004269d0
lea ecx, [ebp - 0xa0]
call fcn.004269d0
lea ecx, [ebp - 0xb8]
call fcn.004269d0
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x1cc]
push 6
push 0x50
mov ecx, esi
call fcn.00452060
cmp dword [ebp + 0x24], 0
je 0x4506a9
mov ecx, esi
call fcn.00450aa0
push 9
push 0x5f
mov ecx, esi
call fcn.00452060
cmp dword [ebp + 0x2c], 0
je 0x450962
cmp dword [ebp + 0xc], 0
je 0x4507a4
mov esi, dword [0x51350c]
test esi, esi
je 0x4506dc
lock inc dword [esi + 4]
mov esi, dword [0x51350c]
mov ecx, dword [0x513508]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x98]
mov byte [ebp - 4], 0x12
test esi, esi
je 0x45071f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45071f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x45071f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x1d8], esp
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00404490
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0x13
cmp dword [0x51358c], 0
jne 0x450767
push 4
call fcn.0049cf37
mov dword [ebp - 0x1d8], eax
add esp, 4
mov dword [0x51358c], eax
mov dword [eax], vtable.CAutoRunManager.0
mov byte [ebp - 4], 0x12
call fcn.004811f0
mov byte [ebp - 4], 3
mov esi, eax
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x450790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4507a4
push str._update__task_is_run
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x45095c
mov esi, dword [0x51350c]
test esi, esi
je 0x4507b8
lock inc dword [esi + 4]
mov esi, dword [0x51350c]
mov ecx, dword [0x513508]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x1d8]
mov eax, dword [ecx]
push edx
call dword [eax + 0x4c]
mov edx, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 0x15
push dword [eax]
call fcn.00456ca0
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
jb 0x450800
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x4509f6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.004046b0
test al, al
jne 0x450860
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x450838
xor ecx, ecx
jmp 0x450856
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1d4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450843
sub ecx, dword [ebp - 0x1d4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.00404980
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x1e0]
cmp edx, 8
jb 0x4508a4
mov ecx, dword [ebp - 0x1f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45089a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450a00
push edx
push ecx
call fcn.0049cf67
add esp, 8
xor eax, eax
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 7
mov word [ebp - 0x1f4], ax
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x1d8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4508e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1b
test esi, esi
je 0x450909
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x450909
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x450909
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450941
push ecx
lea eax, [esi - 0x10]
mov ebx, esp
push eax
mov dword [ebp - 0x1d4], ebx
call fcn.00404490
add esp, 4
add eax, 0x10
mov ecx, 1
mov dword [ebx], eax
call fcn.004717c0
add esp, 4
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45095c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1cc]
push 0x4e2530
push 0x4e1e08
push str.install
call fcn.00472730
add esp, 0xc
mov ecx, esi
push 0xa
push 0x64
call fcn.00452060
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45099f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4509be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1d0]
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.0049d3dd
mov esp, ebp
pop ebp
ret 0x38
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
call fcn.004a1aef
int3