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

Disassembly:
push 0xffffffffffffffff
push 0x4c6db0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
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 0x451336
cmp dword [esi + 0x14], ebx
je 0x451336
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.0040d1c3
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x4510dc
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x45139a
cmp eax, dword [esp + 0x38]
ja 0x45139a
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.0040d260
mov eax, dword [esp + 0x44]
mov edi, 8
cmp dword [esp + 0x58], edi
jae 0x451132
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x451379
cmp eax, dword [esp + 0x54]
ja 0x451379
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x45115e
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x45118d
lea ecx, [esp + 0x40]
call fcn.0040198e
lea ecx, [esp + 0x24]
call fcn.0040198e
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x451358
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00401dc2
lea eax, [esp + 0x78]
push eax
call fcn.00450c00
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0xa8], 3
call fcn.00479430
add esp, 0x24
test al, al
je 0x451301
lea eax, [esp + 0x5c]
call fcn.0047b390
test eax, eax
jne 0x4511f8
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x4511de
lea eax, [esp + 0x60]
push eax
call fcn.0044f690
xor edx, edx
add esp, 4
test al, al
setne dl
add edx, 0x20
mov ebp, edx
jmp 0x451301
lea eax, [esp + 0x5c]
push eax
call fcn.00450cf0
add esp, 4
push ebx
push str.Acrobat_IEHelper_Object
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, ebx
je 0x45126b
xor esi, esi
cmp byte [esp + 0x94], bl
je 0x451230
push str._blank
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
movzx esi, ax
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x45123f
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx eax, ax
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 0x45126b
mov ebp, 0x21
jmp 0x451301
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 0x451301
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.0048d83c
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 0x4512f8
mov ecx, dword [esp + 0x44]
mov eax, 8
cmp dword [esp + 0x58], eax
jae 0x4512db
lea ecx, [esp + 0x44]
cmp dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
jae 0x4512e9
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.0048eb45
add esp, 4
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x451310
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x5c]
call fcn.0040198e
lea ecx, [esp + 0x40]
call fcn.0040198e
lea ecx, [esp + 0x24]
call fcn.0040198e
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x18], 1
mov eax, ebp
cmp ebp, ebx
jne 0x45134c
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.0048e25d
add esp, 0x74
ret 0xc
lea ecx, [esp + 0x40]
call fcn.0040198e
lea ecx, [esp + 0x24]
call fcn.0040198e
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x451358
cmp dword [esp + 0x3c], 8
jb 0x4513ae
mov edx, dword [esp + 0x28]
push edx
call fcn.0048e006
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 0x451358