Function at 0x4b5950
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d5d8e
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x3004], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb984]
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 0x4b59c4
push 0x800
push 0x4d79fc
lea eax, [esp + 0x1c]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.0046c5c0
jmp 0x4b59df
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 0x4b59d0
cmp word [esp + 0x14], 0
je 0x4b5bb4
push 0x800
push esi
lea ecx, [esp + 0x101c]
push ecx
call fcn.0047ef70
push 0x800
lea edx, [esp + 0x1018]
push edx
call fcn.00453510
lea eax, [esp + 0x14]
push eax
call fcn.0043ca60
test al, al
jne 0x4b5b16
cmp word [esp + 0x14], 0x22
jne 0x4b5af3
lea ecx, [esp + 0x16]
push 0x22
push ecx
call fcn.004c2207
add esp, 8
test eax, eax
je 0x4b5b16
push 0x4df948
push eax
call fcn.004c1c75
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5b16
movzx edx, word [esi]
push edx
mov edi, esi
call fcn.0047ec50
test al, al
je 0x4b5a81
lea esp, [esp]
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.0047ec50
test al, al
jne 0x4b5a70
push 0x800
push edi
lea ecx, [esp + 0x201c]
push ecx
call fcn.0047ef70
push 0x800
push 0x4d9734
lea edx, [esp + 0x201c]
push edx
call fcn.0047efb0
push 0x800
lea eax, [esp + 0x1018]
push eax
lea ecx, [esp + 0x201c]
push ecx
call fcn.0047efb0
movzx ebx, word [esi]
xor edx, edx
mov word [esi], dx
cmp word [esp + 0x14], 0x22
je 0x4b5afc
lea eax, [esp + 0x14]
push eax
call fcn.0043ca60
test al, al
jne 0x4b5afc
lea eax, [edi + 2]
mov word [esi], bx
test eax, eax
jne 0x4b5a45
jmp 0x4b5b16
lea eax, [esp + 0x14]
jmp 0x4b5a45
push 0x800
lea ecx, [esp + 0x2018]
push ecx
lea edx, [esp + 0x101c]
push edx
call fcn.0047ef70
or esi, 0xffffffff
test byte [0x57ea14], 1
jne 0x4b5b52
or dword [0x57ea14], 1
mov dword [esp + 0x3020], 0
mov ecx, 0x57a8f0
call fcn.004b3420
push 0x4d6640
call fcn.004c3aa6
add esp, 4
mov dword [esp + 0x3020], esi
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, 0x57a8f0
call fcn.004b44a0
mov bl, byte [esp + 0x302c]
push 0
test bl, bl
sete cl
push 0x57a8f0
movzx edx, cl
push edx
lea eax, [esp + 0x1020]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
call fcn.004b3c10
test al, al
jne 0x4b5bb8
mov eax, dword [0x57a8f8]
cmp eax, esi
je 0x4b5baa
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57a8f8], esi
mov ecx, 0x57e912
call fcn.00478720
xor al, al
jmp 0x4b5c00
test bl, bl
je 0x4b5bde
cmp dword [0x57a8f0], 0
je 0x4b5bde
push 0x57a8f0
push 0x10000
push 0x4b45c0
call fcn.004c28fb
add esp, 0xc
jmp 0x4b5bfe
mov eax, dword [0x57a8f8]
cmp eax, esi
je 0x4b5bf4
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x57a8f8], esi
mov ecx, 0x57e912
call fcn.00478720
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.004c0c62
add esp, 0x3014
ret 0xc