Function at 0x481b40
Capabilities:
Check if file exists
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dec15
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x522638]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ebx, [ecx + 0x6c]
mov dword [ebp - 0x108], 0
push ebx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x100], eax
cmp esi, eax
je 0x48218d
cmp dword [esi + 0x10], eax
je 0x48218d
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], eax
mov word [ebp - 0x48], cx
push eax
push 0x105
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040c680
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x481bea
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
cmp eax, edi
je 0x4821e2
cmp eax, dword [ebp - 0x38]
ja 0x4821e2
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
push edi
push 0x105
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040c680
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x481c36
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x4821c7
cmp eax, dword [ebp - 0x54]
ja 0x4821c7
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x481c5e
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4821c7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf8], esp
push esi
call fcn.00428860
lea edx, [ebp - 0x80]
push edx
call fcn.0047c230
xor eax, eax
mov byte [ebp - 0xf4], 0
mov byte [ebp - 0xf2], 0
mov byte [ebp - 0xf1], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xf1]
push edx
lea eax, [ebp - 0xf2]
push eax
lea ecx, [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 4
call fcn.004a06a0
mov bl, al
mov eax, dword [0x52513c]
add esp, 0x34
mov byte [ebp - 0xf9], bl
cmp eax, edi
je 0x481fc3
cmp byte [eax + 0x4d], 0
je 0x481fc3
test bl, bl
je 0x482148
cmp byte [ebp - 0xf4], 0
je 0x481fc3
cmp byte [ebp - 0xf2], 0
jne 0x481fc3
cmp byte [ebp - 0xf1], 0
jne 0x481fc3
cmp dword [ebp - 0x1c], 0
je 0x481fc3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x481d39
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x104]
push 0x80000000
push eax
push esi
call fcn.00477a10
add esp, 0xc
test al, al
jne 0x481fc3
mov dword [ebp - 0xf8], 0
test esi, esi
je 0x482148
cmp dword [ebp - 0x1c], 0
je 0x482148
mov eax, esi
push eax
push 0
mov dword [eax + 0x14], 1
call fcn.00477a60
add esp, 8
test al, al
jne 0x481d94
mov dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x481da4
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x10c]
push 0x80000000
push eax
mov eax, dword [esi + 0x14]
push eax
call fcn.0043d2d0
mov bl, al
add esp, 0xc
mov byte [ebp - 0xf3], bl
test bl, bl
je 0x481dd8
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.0043d490
jmp 0x481f9b
cmp dword [ebp - 0x1c], 0
je 0x481f9b
lea edx, [ebp - 0x2c]
push edx
mov eax, edx
push eax
call fcn.0041e780
add esp, 8
test al, al
je 0x481f9b
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x481e04
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x481f9b
push 1
push 0
push 0x4fdfa4
lea ecx, [ebp - 0x2c]
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x481f9b
push 1
push 0
push 0x4fdfa0
lea ecx, [ebp - 0x2c]
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x481f9b
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x481e52
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0041ecc0
add esp, 8
test al, al
je 0x481f9b
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x481e72
lea eax, [ebp - 0x2c]
push eax
call fcn.0041eed0
add esp, 4
test al, al
je 0x481f9b
lea edx, [ebp - 0x2c]
push edx
push 0x2d
lea eax, [ebp - 0x9c]
push eax
mov ecx, esi
call fcn.0047c950
mov ecx, dword [0x52513c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x481ebe
push 0x28
lea edx, [ebp - 0xd4]
push edx
call fcn.0043e3fc
mov byte [ebp - 4], 6
mov ebx, 1
jmp 0x481eda
push 0x4e596c
lea ecx, [ebp - 0xf0]
call fcn.00408720
mov dword [ebp - 4], 7
mov ebx, 2
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x108], ebx
call fcn.0043f7a0
mov dword [ebp - 4], edi
test bl, 2
je 0x481f02
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffffd
call fcn.00409f90
mov byte [ebp - 4], 0xa
test bl, 1
je 0x481f16
lea ecx, [ebp - 0xd4]
call fcn.00409f90
mov ecx, dword [0x52513c]
test ecx, ecx
je 0x481f2b
call fcn.004434e0
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xb8]
cmp dword [ebp - 0xa4], edi
jae 0x481f3f
lea ecx, [ebp - 0xb8]
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x481f53
lea eax, [ebp - 0x9c]
push ecx
push eax
mov eax, dword [ebp - 0xf8]
push eax
call fcn.00479ef0
add esp, 0xc
test al, al
je 0x481f7b
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.0041e3c0
mov byte [ebp - 0xf3], al
lea ecx, [ebp - 0xb8]
call fcn.00409f90
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.00409f90
mov bl, byte [ebp - 0xf3]
mov ecx, dword [ebp - 0x104]
xor eax, eax
test bl, bl
setne al
cmp dword [ecx + 0x14], 1
mov dword [ecx + 0x1c], eax
jne 0x482148
test eax, eax
je 0x482148
mov bl, byte [ebp - 0xf9]
test bl, bl
je 0x482148
lea eax, [ebp - 0x80]
call fcn.00478b10
test eax, eax
jne 0x482001
cmp dword [ebp - 0x6c], 8
mov eax, dword [ebp - 0x80]
jae 0x481fe3
lea eax, [ebp - 0x80]
push eax
call fcn.0047a870
xor edx, edx
add esp, 4
test al, al
setne dl
add edx, 0x20
mov dword [ebp - 0x100], edx
jmp 0x482148
lea eax, [ebp - 0x80]
push eax
call fcn.0047c2e0
add esp, 4
push 0
push str.Acrobat_IEHelper_Object
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x482075
xor esi, esi
cmp byte [ebp + 0x10], 0
je 0x482036
push str._blank
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
movzx esi, ax
cmp dword [ebp - 0x6c], 8
mov eax, dword [ebp - 0x80]
jae 0x482042
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx eax, ax
test ax, ax
je 0x482075
movzx ecx, si
push ecx
push eax
push 0x4ca
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x482075
mov dword [ebp - 0x100], 0x21
jmp 0x482148
mov edi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0xf8]
push eax
push 0
push str.open
push str.http
push 2
push 0
mov dword [ebp - 0xf8], 0
call edi
cmp eax, 1
jne 0x482148
mov eax, dword [ebp - 0xf8]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push 0x525eb5
neg ecx
or ecx, eax
push ecx
call fcn.004282c1
mov esi, eax
add esp, 8
test esi, esi
je 0x482148
lea eax, [ebp - 0xf8]
push eax
push esi
push str.open
push str.http
push 2
push 0
call edi
test eax, eax
jne 0x48213f
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x48213f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48213f
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x48213f
mov ecx, dword [ebp - 0x64]
mov eax, 8
cmp dword [ebp - 0x50], eax
jae 0x48211f
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
jae 0x48212a
lea eax, [ebp - 0x80]
push 1
push ecx
push eax
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x100], eax
push esi
call fcn.0041ecb3
add esp, 4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x482154
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.00409f90
lea ecx, [ebp - 0x80]
call fcn.00409f90
lea ecx, [ebp - 0x64]
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x100]
mov edi, dword [ebp - 0x104]
mov dword [edi + 0x14], 1
test eax, eax
jne 0x48219d
mov eax, 0x21
push ebx
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
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.00401306
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x64]
call fcn.00409f90
lea ecx, [ebp - 0x48]
call fcn.00409f90
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4821a9
cmp dword [ebp - 0x34], 8
jb 0x4821f4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00406ca9
add esp, 4
xor edx, edx
push ebx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4821a9