Function at 0x45aaa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db61d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.0047f0b0
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ae4c
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4f29bc
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004099b0
test al, al
jne 0x45ab38
push 8
push 0x4f29bc
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateRK
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004099b0
test al, al
jne 0x45aba3
push 9
push str.DCreateRK
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateSM
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004099b0
test al, al
jne 0x45ac0e
push 9
push str.DCreateSM
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4f29f8
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004099b0
test al, al
jne 0x45ac79
push 3
push 0x4f29f8
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 8
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DPid
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004099b0
test al, al
jne 0x45ace4
push 4
push str.DPid
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 0xa
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.ProgVer
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.004099b0
test al, al
jne 0x45ad4f
push 7
push str.ProgVer
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 0xc
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.InsTM
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.004099b0
test al, al
jne 0x45adba
push 5
push str.InsTM
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 0xe
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x18], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x45ae88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.ActFlag
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.004099b0
test al, al
jne 0x45ae25
push 7
push str.ActFlag
mov ecx, esi
call fcn.00409c60
push ecx
mov byte [ebp - 4], 0x10
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0045aea0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ae6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a69a0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409e30
int3