Function at 0x4d9c90
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509ae6
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.004ebbf0
mov eax, dword [0x528af4]
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 ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3014], ebx
test ecx, ecx
jne 0x4d9d29
push 0x800
push 0x50b8c4
lea eax, [ebp - 0x1010]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.0049fec0
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 0x4d9d41
push 0x800
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0048e710
jmp 0x4d9d41
lea edx, [ebp - 0x1010]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4d9d31
cmp word [ebp - 0x1010], 0
je 0x4d9f3e
push 0x800
push ebx
lea eax, [ebp - 0x2010]
push eax
call fcn.0048e710
push 0x800
lea eax, [ebp - 0x2010]
push eax
call fcn.004a7bd0
lea eax, [ebp - 0x1010]
push eax
call fcn.00469360
test al, al
jne 0x4d9e79
cmp word [ebp - 0x1010], 0x22
jne 0x4d9dab
lea eax, [ebp - 0x100e]
push 0x22
push eax
call fcn.004ecec5
add esp, 8
test eax, eax
je 0x4d9e79
jmp 0x4d9db1
lea eax, [ebp - 0x1010]
push 0x514e14
push eax
call fcn.004f6d1b
mov edi, eax
add esp, 8
test edi, edi
je 0x4d9e73
movzx ecx, word [edi]
mov esi, edi
push ecx
call fcn.0048e2e0
test al, al
je 0x4d9de9
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0048e2e0
test al, al
jne 0x4d9dd8
push 0x800
push esi
lea eax, [ebp - 0x3010]
push eax
call fcn.0048e710
push 0x800
push 0x50db18
lea eax, [ebp - 0x3010]
push eax
call fcn.0048e6d0
push 0x800
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x3010]
push eax
call fcn.0048e6d0
movzx ebx, word [edi]
xor eax, eax
mov word [edi], ax
cmp word [ebp - 0x1010], 0x22
je 0x4d9e5b
lea eax, [ebp - 0x1010]
push eax
call fcn.00469360
test al, al
jne 0x4d9e5b
lea eax, [esi + 2]
mov word [edi], bx
test eax, eax
jne 0x4d9db1
jmp 0x4d9e73
push 0x800
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x2010]
push eax
call fcn.0048e710
mov ebx, dword [ebp - 0x3014]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5ccfa8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5a02b4]
cmp eax, dword [ecx + 4]
jle 0x4d9ede
push 0x5a02b4
call fcn.004ec5e9
add esp, 4
cmp dword [0x5a02b4], 0xffffffff
jne 0x4d9ede
mov dword [ebp - 4], 0
mov ecx, 0x5a01b2
call fcn.0048b930
mov byte [ebp - 4], 0
push 0x50a290
call fcn.004ec35b
mov dword [ebp - 4], 0xffffffff
push 0x5a02b4
call fcn.004ec5aa
add esp, 8
push 1
push ebx
mov ecx, 0x59c190
call fcn.004da5d0
mov bl, byte [ebp + 0xc]
push 0
push 0x59c190
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.004db670
test al, al
jne 0x4d9f42
mov eax, dword [0x59c198]
cmp eax, 0xffffffff
je 0x4d9f34
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x59c198], 0xffffffff
mov ecx, 0x5a01b2
call fcn.0048b950
xor al, al
jmp 0x4d9f8f
test bl, bl
je 0x4d9f68
cmp dword [0x59c190], 0
je 0x4d9f68
push 0x59c190
push 0x10000
push 0x4d94a0
call fcn.004f31e1
add esp, 0xc
jmp 0x4d9f8d
mov eax, dword [0x59c198]
cmp eax, 0xffffffff
je 0x4d9f83
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x59c198], 0xffffffff
mov ecx, 0x5a01b2
call fcn.0048b950
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.004ebbd8
mov esp, ebp
pop ebp
ret 0xc