Function at 0x451350
Capabilities:
Create process on windows
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4c7920
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x50b384]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50b384]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
lea edi, [ecx + 0x78]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x84], ebx
cmp esi, ebx
je 0x45165b
cmp dword [esi + 0x14], ebx
je 0x45165b
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
push ebx
push 0x105
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 1
call fcn.0040d213
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x4513fc
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x4516bf
cmp eax, dword [esp + 0x38]
ja 0x4516bf
xor eax, eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
push 0x105
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.0040d2b0
mov eax, dword [esp + 0x44]
mov edi, 8
cmp dword [esp + 0x58], edi
jae 0x451452
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x45169e
cmp eax, dword [esp + 0x54]
ja 0x45169e
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x45147e
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4514ad
lea ecx, [esp + 0x40]
call fcn.0040199c
lea ecx, [esp + 0x24]
call fcn.0040199c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x45167d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401dd0
lea eax, [esp + 0x78]
push eax
call fcn.00482630
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0xa8], 3
call fcn.00479c60
add esp, 0x24
test al, al
je 0x451626
lea eax, [esp + 0x5c]
call fcn.0047bbd0
test eax, eax
jne 0x451518
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x4514fe
lea eax, [esp + 0x60]
push eax
call fcn.0044fa80
xor edx, edx
add esp, 4
test al, al
setne dl
add edx, 0x20
mov ebp, edx
jmp 0x451626
lea eax, [esp + 0x5c]
push eax
call fcn.00451010
add esp, 4
push ebx
push str.Acrobat_IEHelper_Object
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x451590
xor esi, esi
cmp byte [esp + 0x94], bl
je 0x451550
push str._blank
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
movzx esi, ax
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x45155f
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx eax, ax
cmp ax, bx
je 0x451590
movzx ecx, si
push ecx
movzx edx, ax
push edx
push 0x4ca
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x451590
mov ebp, 0x21
jmp 0x451626
mov edi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [esp + 0x14]
push eax
push ebx
push str.open
push str.http
push 2
push ebx
mov dword [esp + 0x2c], ebx
call edi
cmp eax, 1
jne 0x451626
mov eax, dword [esp + 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048e1ac
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push str.open
push str.http
push 2
push ebx
call edi
test eax, eax
jne 0x45161d
mov ecx, dword [esp + 0x44]
mov eax, 8
cmp dword [esp + 0x58], eax
jae 0x451600
lea ecx, [esp + 0x44]
cmp dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
jae 0x45160e
lea eax, [esp + 0x60]
push 1
push ecx
push eax
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebp, eax
push esi
call fcn.0048f4b5
add esp, 4
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x451635
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x5c]
call fcn.0040199c
lea ecx, [esp + 0x40]
call fcn.0040199c
lea ecx, [esp + 0x24]
call fcn.0040199c
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x18], 1
mov eax, ebp
cmp ebp, ebx
jne 0x451671
mov eax, 0x21
push edi
mov dword [ecx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0048ebcd
add esp, 0x74
ret 0xc
lea ecx, [esp + 0x40]
call fcn.0040199c
lea ecx, [esp + 0x24]
call fcn.0040199c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x45167d
cmp dword [esp + 0x3c], 8
jb 0x4516d3
mov edx, dword [esp + 0x28]
push edx
call fcn.0048e976
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x45167d