Function at 0x4cbd30
Capabilities:
Create thread
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4ffb5e
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x3004], eax
push ebx
push esi
push edi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x3018]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3030]
mov esi, dword [esp + 0x3028]
mov dword [esp + 0x10], esi
test eax, eax
jne 0x4cbdd7
push 0x800
push 0x501a20
lea eax, [esp + 0x1c]
push eax
push str.ExternalViewer
push 0x503ef0
call fcn.0049c530
push 0x800
lea ecx, [esp + 0x2018]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x4cbdef
push 0x800
lea eax, [esp + 0x2018]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004694b0
jmp 0x4cbdef
lea edx, [esp + 0x14]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4cbde0
cmp word [esp + 0x14], 0
je 0x4cbfc4
push 0x800
push esi
lea edx, [esp + 0x101c]
push edx
call fcn.004694b0
push 0x800
lea eax, [esp + 0x1018]
push eax
call fcn.004a3cf0
lea ecx, [esp + 0x14]
push ecx
call fcn.00445470
test al, al
jne 0x4cbf26
cmp word [esp + 0x14], 0x22
jne 0x4cbf03
lea edx, [esp + 0x16]
push 0x22
push edx
call fcn.004e94f5
add esp, 8
test eax, eax
je 0x4cbf26
push 0x50a8c4
push eax
call fcn.004e9ced
mov esi, eax
add esp, 8
test esi, esi
je 0x4cbf26
movzx eax, word [esi]
push eax
mov edi, esi
call fcn.00469170
test al, al
je 0x4cbe91
lea esp, [esp]
movzx ecx, word [edi + 2]
add edi, 2
push ecx
call fcn.00469170
test al, al
jne 0x4cbe80
push 0x800
push edi
lea edx, [esp + 0x201c]
push edx
call fcn.004694b0
push 0x800
push 0x504858
lea eax, [esp + 0x201c]
push eax
call fcn.00469530
push 0x800
lea ecx, [esp + 0x1018]
push ecx
lea edx, [esp + 0x201c]
push edx
call fcn.00469530
movzx ebx, word [esi]
xor eax, eax
mov word [esi], ax
cmp word [esp + 0x14], 0x22
je 0x4cbf0c
lea ecx, [esp + 0x14]
push ecx
call fcn.00445470
test al, al
jne 0x4cbf0c
lea eax, [edi + 2]
mov word [esi], bx
test eax, eax
jne 0x4cbe55
jmp 0x4cbf26
lea eax, [esp + 0x14]
jmp 0x4cbe55
push 0x800
lea edx, [esp + 0x2018]
push edx
lea eax, [esp + 0x101c]
push eax
call fcn.004694b0
or esi, 0xffffffff
test byte [0x57d8a4], 1
jne 0x4cbf62
or dword [0x57d8a4], 1
mov dword [esp + 0x3020], 0
mov ecx, 0x579780
call fcn.004c96a0
push 0x500720
call fcn.004ea830
add esp, 4
mov dword [esp + 0x3020], esi
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, 0x579780
call fcn.004ca5e0
mov bl, byte [esp + 0x302c]
push 0
test bl, bl
sete dl
push 0x579780
movzx eax, dl
push eax
lea ecx, [esp + 0x1020]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
call fcn.004c9ee0
test al, al
jne 0x4cbfc8
mov eax, dword [0x579788]
cmp eax, esi
je 0x4cbfba
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x579788], esi
mov ecx, 0x57d7a2
call fcn.00466b80
xor al, al
jmp 0x4cc010
test bl, bl
je 0x4cbfee
cmp dword [0x579780], 0
je 0x4cbfee
push 0x579780
push 0x10000
push 0x4cb4e0
call fcn.004ebd16
add esp, 0xc
jmp 0x4cc00e
mov eax, dword [0x579788]
cmp eax, esi
je 0x4cc004
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x579788], esi
mov ecx, 0x57d7a2
call fcn.00466b80
mov al, 1
mov ecx, dword [esp + 0x3018]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x3014
ret 0xc