Function at 0x412b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bef8f
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd0], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405a00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004683f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412e32
push 0x4cce74
lea ecx, [ebp - 0x30]
call fcn.004089f0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4c]
call fcn.00489fd0
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0xd8]
call fcn.0048a4e0
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00418270
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
call fcn.0048a4e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x68]
call fcn.0042a190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0042a190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0042a190
cmp dword [ebp - 0x14], 0
je 0x412d95
push str.regsvr32.exe
lea ecx, [ebp - 0x8c]
call fcn.004089f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push ecx
push 0x4ccf18
lea edx, [ebp - 0x6c]
push edx
call fcn.00406e00
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 4
push 0x4ccf14
mov ecx, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa8]
call fcn.00489fd0
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0xf4]
call fcn.0048a4e0
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00418270
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 7
push 0
push 0
mov ecx, dword [ebp - 0xec]
call fcn.004683f0
mov esi, eax
mov ecx, dword [ebp - 0xfc]
call fcn.0048a4e0
xor ecx, ecx
mov edi, esi
mov ebx, eax
call fcn.00488e00
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.0042a190
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa8]
call fcn.0042a190
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00417fc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00417fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0042a190
jmp 0x412e32
lea edx, [ebp - 0x10]
push edx
push 0x4ccf44
lea eax, [ebp - 0xc8]
push eax
call fcn.00406e00
add esp, 0xc
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x104], ecx
mov byte [ebp - 4], 8
push 0x4ccf40
mov edx, dword [ebp - 0x104]
push edx
lea eax, [ebp - 0xcc]
push eax
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 9
push 0
push 0
mov ecx, dword [ebp - 0x10c]
call fcn.004683f0
xor ecx, ecx
mov edi, eax
mov ebx, str.regsvr32
call fcn.00488e00
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
call fcn.00417fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00417fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00417fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4