Function at 0x4a46d0
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 0x4a471f
push 0x400
push 0x4c6d80
lea eax, [esp + 0x10]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.00460470
jmp 0x4a4734
lea edx, [esp + 8]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a4725
cmp word [esp + 8], 0
jne 0x4a4756
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 0x4a4761
push ebx
lea ecx, [esp + 0x80c]
push ecx
call fcn.0044ca80
lea edx, [esp + 0xc]
push edx
call fcn.00435620
test al, al
jne 0x4a48da
cmp word [esp + 0xc], 0x22
jne 0x4a48aa
lea eax, [esp + 0xe]
push 0x22
push eax
call fcn.004b0bd2
add esp, 8
test eax, eax
je 0x4a48da
push ebp
push edi
push 0x4ce38c
push eax
call fcn.004b37a8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a48d8
movzx ecx, word [ebx]
push ecx
mov ebp, ebx
call fcn.0046fa30
test al, al
je 0x4a47f1
lea esp, [esp]
movzx edx, word [ebp + 2]
add ebp, 2
push edx
call fcn.0046fa30
test al, al
jne 0x4a47e0
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 0x4a4800
lea edi, [esp + 0x1014]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4820
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 0x4a4840
lea edi, [esp + 0x1014]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a4860
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a4860
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 0x4a48b3
lea edx, [esp + 0x14]
push edx
call fcn.00435620
test al, al
jne 0x4a48b3
lea eax, [ebp + 2]
mov word [ebx], si
test eax, eax
jne 0x4a47b5
jmp 0x4a48d8
lea eax, [esp + 0xc]
jmp 0x4a47b3
xor eax, eax
jmp 0x4a48c0
movzx ecx, word [esp + eax + 0x1014]
mov word [esp + eax + 0x814], cx
add eax, 2
test cx, cx
jne 0x4a48c0
pop edi
pop ebp
mov eax, dword [esp + 8]
push 1
push eax
mov ecx, 0x5432f8
call fcn.004a2660
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.004a2910
test al, al
jne 0x4a494f
mov eax, dword [0x543300]
cmp eax, 0xffffffff
je 0x4a4937
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 0x4a49a3
test bl, bl
je 0x4a4972
cmp dword [0x5432f8], 0
je 0x4a4972
push 0x5432f8
push 0x10000
push 0x4a34e0
call fcn.004b127b
jmp 0x4a499e
mov eax, dword [0x543300]
cmp eax, 0xffffffff
je 0x4a498d
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