Function at 0x4a46a0
Capabilities:
Create thread

Disassembly:
mov eax, 0x1808
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x1804], eax
mov eax, dword [esp + 0x1814]
push esi
mov esi, dword [esp + 0x1810]
mov dword [esp + 4], esi
test eax, eax
jne 0x4a46ef
push 0x400
push 0x4c6d80
lea eax, [esp + 0x10]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.00460470
jmp 0x4a4704
lea edx, [esp + 8]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a46f5
cmp word [esp + 8], 0
jne 0x4a4726
xor al, al
pop esi
mov ecx, dword [esp + 0x1804]
xor ecx, esp
call fcn.004affec
add esp, 0x1808
ret 0xc
lea edx, [esp + 0x808]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a4731
push ebx
lea ecx, [esp + 0x80c]
push ecx
call fcn.0044ca80
lea edx, [esp + 0xc]
push edx
call fcn.00435620
test al, al
jne 0x4a48aa
cmp word [esp + 0xc], 0x22
jne 0x4a487a
lea eax, [esp + 0xe]
push 0x22
push eax
call fcn.004b0bd2
add esp, 8
test eax, eax
je 0x4a48aa
push ebp
push edi
push 0x4ce38c
push eax
call fcn.004b37a8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a48a8
movzx ecx, word [ebx]
push ecx
mov ebp, ebx
call fcn.0046fa30
test al, al
je 0x4a47c1
lea esp, [esp]
movzx edx, word [ebp + 2]
add ebp, 2
push edx
call fcn.0046fa30
test al, al
jne 0x4a47b0
lea edx, [esp + 0x1014]
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 0x4a47d0
lea edi, [esp + 0x1014]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a47f0
mov eax, dword [0x4c8434]
mov dword [edi], eax
lea eax, [esp + 0x814]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4810
lea edi, [esp + 0x1014]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a4830
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a4830
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 + 0x14], 0x22
je 0x4a4883
lea edx, [esp + 0x14]
push edx
call fcn.00435620
test al, al
jne 0x4a4883
lea eax, [ebp + 2]
mov word [ebx], si
test eax, eax
jne 0x4a4785
jmp 0x4a48a8
lea eax, [esp + 0xc]
jmp 0x4a4783
xor eax, eax
jmp 0x4a4890
movzx ecx, word [esp + eax + 0x1014]
mov word [esp + eax + 0x814], cx
add eax, 2
test cx, cx
jne 0x4a4890
pop edi
pop ebp
mov eax, dword [esp + 8]
push 1
push eax
mov ecx, 0x5432f8
call fcn.004a2630
mov bl, byte [esp + 0x1818]
push 0
test bl, bl
sete cl
push 0x5432f8
movzx edx, cl
push edx
lea eax, [esp + 0x818]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call fcn.004a28e0
test al, al
jne 0x4a491f
mov eax, dword [0x543300]
cmp eax, 0xffffffff
je 0x4a4907
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x543300], 0xffffffff
push 0x80
push 0
push 0x54531a
call fcn.004b0470
add esp, 0xc
xor al, al
jmp 0x4a4973
test bl, bl
je 0x4a4942
cmp dword [0x5432f8], 0
je 0x4a4942
push 0x5432f8
push 0x10000
push 0x4a34b0
call fcn.004b127b
jmp 0x4a496e
mov eax, dword [0x543300]
cmp eax, 0xffffffff
je 0x4a495d
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x543300], 0xffffffff
push 0x80
push 0
push 0x54531a
call fcn.004b0470
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x180c]
pop ebx
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x1808
ret 0xc