Function at 0x4efec0
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521986
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.00502fa0
mov eax, dword [0x5513d4]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3014], ebx
push 0x800
test eax, eax
jne 0x4eff51
push 0x52452c
lea eax, [ebp - 0x1010]
push eax
push str.ExternalViewer
push 0x525008
call fcn.004ae6d0
push 0x800
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4eff5e
cmp eax, 0x800
jae 0x4eff5e
push 0x800
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0049ce90
cmp word [ebp - 0x1010], 0
je 0x4f015d
push 0x800
push ebx
lea eax, [ebp - 0x2010]
push eax
call fcn.0049ce90
push 0x800
lea eax, [ebp - 0x2010]
push eax
call fcn.004b68b0
lea eax, [ebp - 0x1010]
push eax
call fcn.00474160
test al, al
jne 0x4f0098
cmp word [ebp - 0x1010], 0x22
jne 0x4effc8
lea eax, [ebp - 0x100e]
push 0x22
push eax
call fcn.005042eb
add esp, 8
test eax, eax
je 0x4f0098
jmp 0x4effd0
lea eax, [ebp - 0x1010]
mov edi, edi
push 0x537f70
push eax
call fcn.0050e163
mov edi, eax
add esp, 8
test edi, edi
je 0x4f0092
movzx ecx, word [edi]
mov esi, edi
push ecx
call fcn.0049ca70
test al, al
je 0x4f0008
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0049ca70
test al, al
jne 0x4efff7
push 0x800
push esi
lea eax, [ebp - 0x3010]
push eax
call fcn.0049ce90
push 0x800
push 0x5269ec
lea eax, [ebp - 0x3010]
push eax
call fcn.0049ce50
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3010]
push eax
call fcn.0049ce50
movzx ebx, word [edi]
xor eax, eax
mov word [edi], ax
cmp word [ebp - 0x1010], 0x22
je 0x4f007a
lea eax, [ebp - 0x1010]
push eax
call fcn.00474160
test al, al
jne 0x4f007a
lea eax, [esi + 2]
mov word [edi], bx
test eax, eax
jne 0x4effd0
jmp 0x4f0092
push 0x800
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x2010]
push eax
call fcn.0049ce90
mov ebx, dword [ebp - 0x3014]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5ee5e0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5c18c4]
cmp eax, dword [ecx + 4]
jle 0x4f00fd
push 0x5c18c4
call fcn.005039c4
add esp, 4
cmp dword [0x5c18c4], 0xffffffff
jne 0x4f00fd
mov dword [ebp - 4], 0
mov ecx, 0x5c17c2
call fcn.00499f80
mov byte [ebp - 4], 0
push 0x522160
call fcn.0050370b
mov dword [ebp - 4], 0xffffffff
push 0x5c18c4
call fcn.00503985
add esp, 8
push 1
push ebx
mov ecx, 0x5bd7a0
call fcn.004f0810
mov bl, byte [ebp + 0xc]
push 0
push 0x5bd7a0
test bl, bl
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
lea eax, [ebp - 0x1010]
push eax
push 0
call fcn.004f18c0
test al, al
jne 0x4f0161
mov eax, dword [0x5bd7a8]
cmp eax, 0xffffffff
je 0x4f0153
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5bd7a8], 0xffffffff
mov ecx, 0x5c17c2
call fcn.00499fa0
xor al, al
jmp 0x4f01ae
test bl, bl
je 0x4f0187
cmp dword [0x5bd7a0], 0
je 0x4f0187
push 0x5bd7a0
push 0x10000
push 0x4ef670
call fcn.0050a474
add esp, 0xc
jmp 0x4f01ac
mov eax, dword [0x5bd7a8]
cmp eax, 0xffffffff
je 0x4f01a2
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5bd7a8], 0xffffffff
mov ecx, 0x5c17c2
call fcn.00499fa0
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.00502f8e
mov esp, ebp
pop ebp
ret 0xc