Function at 0x4357f0
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4af301
mov eax, dword fs:[0]
push eax
mov eax, 0x4030
call fcn.0048ca70
mov eax, dword [0x4f07b0]
xor eax, esp
mov dword [esp + 0x402c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f07b0]
xor eax, esp
push eax
lea eax, [esp + 0x4044]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0xc]
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
call fcn.00409030
xor ebx, ebx
mov dword [esp + 0x404c], ebx
lea ecx, [esp + 0x1c]
call fcn.00408f60
mov byte [esp + 0x404c], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x43587b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push 0x4caa30
push ecx
call fcn.0040aad0
add esp, 0xc
mov dword [esp + 0x18], ebx
mov byte [esp + 0x404c], 2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x435b31
mov ebp, dword [esp + 0x14]
push 0x4c0924
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x48]
mov dword [esp + 0x1c], 0x1000
call fcn.0041f5c0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov eax, esi
mov word [esp + edx*2 + 0x40], bx
add edi, 0x38
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435901
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0040a130
cmp ebp, ebx
je 0x43592e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x2c]
call fcn.00408f60
mov byte [esp + 0x404c], 3
lea ecx, [esp + 0x34]
call fcn.00408f60
mov byte [esp + 0x404c], 4
lea ecx, [esp + 0x20]
call fcn.00408f60
mov byte [esp + 0x404c], 5
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
push 0x26
lea ecx, [esp + 0x48]
push ecx
push ebx
call esi
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435980
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x34]
call fcn.0040a130
push ebx
push 0x25
lea eax, [esp + 0x48]
push eax
push ebx
call esi
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4359b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040a130
push ebx
push 0x24
lea edx, [esp + 0x48]
push edx
push ebx
call esi
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4359e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
call fcn.0040a130
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00408fd0
mov byte [esp + 0x4050], 6
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str._PROGRAMFILES_
call fcn.00409030
mov byte [esp + 0x4054], 7
mov byte [esp + 0x4054], 5
call fcn.004356d0
add esp, 4
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00408fd0
mov byte [esp + 0x4050], 8
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._SYSTEMROOT_
call fcn.00409030
mov byte [esp + 0x4054], 9
mov byte [esp + 0x4054], 5
call fcn.004356d0
add esp, 4
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00408fd0
mov byte [esp + 0x4050], 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._WINDIR_
call fcn.00409030
mov byte [esp + 0x4054], 0xb
mov byte [esp + 0x4054], 5
call fcn.004356d0
mov eax, dword [edi]
sub eax, 0x10
add esp, 8
cmp dword [eax + 0xc], 1
jle 0x435ad8
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.00409d10
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2044]
push edx
push 0x1000
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebx
jbe 0x435b60
mov eax, dword [esp + 0x24]
mov byte [eax + 0x3c], 1
lea eax, [esp + 0x2040]
lea edx, [eax + 2]
jmp 0x435b10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435b10
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2044]
push ecx
mov ecx, edi
call fcn.0040a130
jmp 0x435b9e
mov byte [esi + 0x3c], bl
mov byte [esp + 0x404c], bl
lea ecx, [esp + 0x1c]
call fcn.00409790
mov dword [esp + 0x404c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00409790
or eax, 0xffffffff
jmp 0x435c0e
mov edi, dword [edi]
push edi
lea edx, [esp + 0x18]
push edx
call fcn.004097f0
mov byte [esp + 0x404c], 0xc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [esp + 0x24]
test eax, eax
setne cl
mov byte [edx + 0x3c], cl
mov byte [esp + 0x404c], 5
lea eax, [esp + 0x14]
push eax
call fcn.00406970
mov byte [esp + 0x404c], 4
lea ecx, [esp + 0x20]
call fcn.00409790
mov byte [esp + 0x404c], 3
lea ecx, [esp + 0x34]
call fcn.00409790
mov byte [esp + 0x404c], 2
lea ecx, [esp + 0x2c]
call fcn.00409790
mov byte [esp + 0x404c], 1
cmp ebp, ebx
je 0x435be8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x404c], bl
lea ecx, [esp + 0x1c]
call fcn.00409790
mov dword [esp + 0x404c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00409790
xor eax, eax
mov ecx, dword [esp + 0x4044]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x402c]
xor ecx, esp
call fcn.004892f2
add esp, 0x403c
ret