Function at 0x4c89c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4fc0ce
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x3004], eax
push ebx
push esi
push edi
mov eax, dword [0x514bc0]
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 0x4c8a34
push 0x800
push 0x4fdab8
lea eax, [esp + 0x1c]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.00499a60
jmp 0x4c8a4f
lea edx, [esp + 0x14]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4c8a40
cmp word [esp + 0x14], 0
je 0x4c8c24
push 0x800
push esi
lea ecx, [esp + 0x101c]
push ecx
call fcn.00467570
push 0x800
lea edx, [esp + 0x1018]
push edx
call fcn.004a1040
lea eax, [esp + 0x14]
push eax
call fcn.00443cc0
test al, al
jne 0x4c8b86
cmp word [esp + 0x14], 0x22
jne 0x4c8b63
lea ecx, [esp + 0x16]
push 0x22
push ecx
call fcn.004e66b5
add esp, 8
test eax, eax
je 0x4c8b86
push 0x506670
push eax
call fcn.004e6ded
mov esi, eax
add esp, 8
test esi, esi
je 0x4c8b86
movzx edx, word [esi]
push edx
mov edi, esi
call fcn.00467230
test al, al
je 0x4c8af1
lea esp, [esp]
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00467230
test al, al
jne 0x4c8ae0
push 0x800
push edi
lea ecx, [esp + 0x201c]
push ecx
call fcn.00467570
push 0x800
push 0x500714
lea edx, [esp + 0x201c]
push edx
call fcn.004675f0
push 0x800
lea eax, [esp + 0x1018]
push eax
lea ecx, [esp + 0x201c]
push ecx
call fcn.004675f0
movzx ebx, word [esi]
xor edx, edx
mov word [esi], dx
cmp word [esp + 0x14], 0x22
je 0x4c8b6c
lea eax, [esp + 0x14]
push eax
call fcn.00443cc0
test al, al
jne 0x4c8b6c
lea eax, [edi + 2]
mov word [esi], bx
test eax, eax
jne 0x4c8ab5
jmp 0x4c8b86
lea eax, [esp + 0x14]
jmp 0x4c8ab5
push 0x800
lea ecx, [esp + 0x2018]
push ecx
lea edx, [esp + 0x101c]
push edx
call fcn.00467570
or esi, 0xffffffff
test byte [0x57983c], 1
jne 0x4c8bc2
or dword [0x57983c], 1
mov dword [esp + 0x3020], 0
mov ecx, 0x575718
call fcn.004c6400
push 0x4fcbc0
call fcn.004e7930
add esp, 4
mov dword [esp + 0x3020], esi
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, 0x575718
call fcn.004c7490
mov bl, byte [esp + 0x302c]
push 0
test bl, bl
sete cl
push 0x575718
movzx edx, cl
push edx
lea eax, [esp + 0x1020]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
call fcn.004c6be0
test al, al
jne 0x4c8c28
mov eax, dword [0x575720]
cmp eax, esi
je 0x4c8c1a
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x575720], esi
mov ecx, 0x57973a
call fcn.00464cb0
xor al, al
jmp 0x4c8c70
test bl, bl
je 0x4c8c4e
cmp dword [0x575718], 0
je 0x4c8c4e
push 0x575718
push 0x10000
push 0x4c8170
call fcn.004e8851
add esp, 0xc
jmp 0x4c8c6e
mov eax, dword [0x575720]
cmp eax, esi
je 0x4c8c64
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x575720], esi
mov ecx, 0x57973a
call fcn.00464cb0
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.004e34f4
add esp, 0x3014
ret 0xc