Function at 0x4a55c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4c645e
mov eax, dword fs:[0]
push eax
mov eax, 0x1808
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x1804], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x181c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1834]
mov esi, dword [esp + 0x182c]
mov dword [esp + 0x14], esi
test eax, eax
jne 0x4a5635
push 0x400
push 0x4c79a8
lea eax, [esp + 0x20]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.00460eb0
jmp 0x4a564f
lea edx, [esp + 0x18]
sub edx, eax
jmp 0x4a5640
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a5640
cmp word [esp + 0x18], 0
je 0x4a5876
lea edx, [esp + 0x818]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a5666
lea ecx, [esp + 0x818]
push ecx
call fcn.0044d0f0
lea edx, [esp + 0x18]
push edx
call fcn.00435ac0
test al, al
jne 0x4a57d8
cmp word [esp + 0x18], 0x22
jne 0x4a57aa
lea eax, [esp + 0x1a]
push 0x22
push eax
call fcn.004b1c12
add esp, 8
test eax, eax
je 0x4a57d8
push 0x4cf41c
push eax
call fcn.004b47e8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a57d8
movzx ecx, word [ebx]
push ecx
mov ebp, ebx
call fcn.00470760
test al, al
je 0x4a56f1
mov edi, edi
movzx edx, word [ebp + 2]
add ebp, 2
push edx
call fcn.00470760
test al, al
jne 0x4a56e0
lea edx, [esp + 0x1018]
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a5700
lea edi, [esp + 0x1018]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5720
mov eax, dword [0x4c9384]
mov dword [edi], eax
lea eax, [esp + 0x818]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5740
lea edi, [esp + 0x1018]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a5760
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a5760
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx esi, word [ebx]
xor ecx, ecx
mov word [ebx], cx
cmp word [esp + 0x18], 0x22
je 0x4a57b3
lea edx, [esp + 0x18]
push edx
call fcn.00435ac0
test al, al
jne 0x4a57b3
lea eax, [ebp + 2]
mov word [ebx], si
test eax, eax
jne 0x4a56b7
jmp 0x4a57d8
lea eax, [esp + 0x18]
jmp 0x4a56b7
xor eax, eax
jmp 0x4a57c0
movzx ecx, word [esp + eax + 0x1018]
mov word [esp + eax + 0x818], cx
add eax, 2
test cx, cx
jne 0x4a57c0
or esi, 0xffffffff
test byte [0x546444], 1
jne 0x4a5814
or dword [0x546444], 1
mov dword [esp + 0x1824], 0
mov ecx, 0x544320
call fcn.004a3340
push 0x4c6c50
call fcn.004b2e7f
add esp, 4
mov dword [esp + 0x1824], esi
mov eax, dword [esp + 0x14]
push 1
push eax
mov ecx, 0x544320
call fcn.004a3f10
mov bl, byte [esp + 0x1830]
push 0
test bl, bl
sete cl
push 0x544320
movzx edx, cl
push edx
lea eax, [esp + 0x824]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call fcn.004a36a0
test al, al
jne 0x4a587a
mov eax, dword [0x544328]
cmp eax, esi
je 0x4a586c
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x544328], esi
mov ecx, 0x546342
call fcn.0046a880
xor al, al
jmp 0x4a58c2
test bl, bl
je 0x4a58a0
cmp dword [0x544320], 0
je 0x4a58a0
push 0x544320
push 0x10000
push 0x4a4390
call fcn.004b22bb
add esp, 0xc
jmp 0x4a58c0
mov eax, dword [0x544328]
cmp eax, esi
je 0x4a58b6
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x544328], esi
mov ecx, 0x546342
call fcn.0046a880
mov al, 1
mov ecx, dword [esp + 0x181c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1804]
xor ecx, esp
call fcn.004b102c
add esp, 0x1814
ret 0xc