Function at 0x402f30
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47043c
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x4954f4]
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
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0044b130
add esi, 0x38
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x402f81
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x220]
push 0x105
push eax
call fcn.0044f0a8
add esp, 0xc
call fcn.0040a000
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [eax]
lea eax, [ebp - 0x220]
test edi, edi
je 0x402fb4
push str.DyShellMgrX64.dll
jmp 0x402fb9
push str.DyShellMgr.dll
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40332c
test edi, edi
je 0x4031bf
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.regsvr32.exe
lea eax, [ebp - 0x430]
push eax
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x40332c
test esi, esi
je 0x40332c
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
call ebx
push 0x48801c
lea ecx, [ebp - 0x4c4]
call fcn.004067d0
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00409000
push 0x488018
push eax
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 1
push eax
call fcn.00409000
mov byte [ebp - 4], 0
add esp, 0x18
mov edx, dword [ebp - 0x480]
cmp edx, 8
jb 0x4030e1
mov ecx, dword [ebp - 0x494]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403348
push edx
push ecx
call fcn.00444954
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4b0]
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 7
mov word [ebp - 0x494], ax
cmp edx, 8
jb 0x403145
mov ecx, dword [ebp - 0x4c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40313b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40334d
push edx
push ecx
call fcn.00444954
add esp, 8
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push 1
cmovae eax, dword [ebp - 0x448]
push 0
push eax
lea eax, [ebp - 0x430]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x434]
cmp edx, 8
jb 0x4031b2
mov ecx, dword [ebp - 0x448]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403352
push edx
push ecx
call fcn.00444954
add esp, 8
push dword [ebp - 0x464]
call esi
jmp 0x40332c
push 4
xor eax, eax
mov dword [ebp - 0x46c], 0
push 0x48801c
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x468], 7
mov word [ebp - 0x47c], ax
call fcn.00407ef0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.00409000
push 0x488018
push eax
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 3
push eax
call fcn.00409000
mov edx, dword [ebp - 0x498]
add esp, 0x18
cmp edx, 8
jb 0x403268
mov ecx, dword [ebp - 0x4ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40325e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403357
push edx
push ecx
call fcn.00444954
add esp, 8
mov edx, dword [ebp - 0x468]
xor eax, eax
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 7
mov word [ebp - 0x4ac], ax
cmp edx, 8
jb 0x4032c5
mov ecx, dword [ebp - 0x47c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4032bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40335c
push edx
push ecx
call fcn.00444954
add esp, 8
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
push 1
cmovae eax, dword [ebp - 0x460]
push 0
push eax
push str.regsvr32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x40332c
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403361
push edx
push ecx
call fcn.00444954
add esp, 8
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.00444204
mov esp, ebp
pop ebp
ret
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
int3