Function at 0x4a3500
Capabilities:
Create thread

Disassembly:
mov eax, 0x1808
call fcn.004af5f0
mov eax, dword [0x4d8620]
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 0x4a354f
push 0x400
push 0x4c5d70
lea eax, [esp + 0x10]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.0045fba0
jmp 0x4a3564
lea edx, [esp + 8]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a3555
cmp word [esp + 8], 0
jne 0x4a3586
xor al, al
pop esi
mov ecx, dword [esp + 0x1804]
xor ecx, esp
call fcn.004aedbb
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 0x4a3591
push ebx
lea ecx, [esp + 0x80c]
push ecx
call fcn.0044af50
lea edx, [esp + 0xc]
push edx
call fcn.00432420
test al, al
jne 0x4a370a
cmp word [esp + 0xc], 0x22
jne 0x4a36da
lea eax, [esp + 0xe]
push 0x22
push eax
call fcn.004afd82
add esp, 8
test eax, eax
je 0x4a370a
push ebp
push edi
push 0x4cd37c
push eax
call fcn.004b2969
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a3708
movzx ecx, word [ebx]
push ecx
mov ebp, ebx
call fcn.0046f050
test al, al
je 0x4a3621
lea esp, [esp]
movzx edx, word [ebp + 2]
add ebp, 2
push edx
call fcn.0046f050
test al, al
jne 0x4a3610
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 0x4a3630
lea edi, [esp + 0x1014]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a3650
mov eax, dword [0x4c7ac4]
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 0x4a3670
lea edi, [esp + 0x1014]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a3690
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a3690
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 0x4a36e3
lea edx, [esp + 0x14]
push edx
call fcn.00432420
test al, al
jne 0x4a36e3
lea eax, [ebp + 2]
mov word [ebx], si
test eax, eax
jne 0x4a35e5
jmp 0x4a3708
lea eax, [esp + 0xc]
jmp 0x4a35e3
xor eax, eax
jmp 0x4a36f0
movzx ecx, word [esp + eax + 0x1014]
mov word [esp + eax + 0x814], cx
add eax, 2
test cx, cx
jne 0x4a36f0
pop edi
pop ebp
mov eax, dword [esp + 8]
push 1
push eax
mov ecx, 0x56a800
call fcn.004a1490
mov bl, byte [esp + 0x1818]
push 0
test bl, bl
sete cl
push 0x56a800
movzx edx, cl
push edx
lea eax, [esp + 0x818]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call fcn.004a1740
test al, al
jne 0x4a377f
mov eax, dword [0x56a808]
cmp eax, 0xffffffff
je 0x4a3767
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x56a808], 0xffffffff
push 0x80
push 0
push 0x56c822
call fcn.004af620
add esp, 0xc
xor al, al
jmp 0x4a37d3
test bl, bl
je 0x4a37a2
cmp dword [0x56a800], 0
je 0x4a37a2
push 0x56a800
push 0x10000
push 0x4a2310
call fcn.004b043b
jmp 0x4a37ce
mov eax, dword [0x56a808]
cmp eax, 0xffffffff
je 0x4a37bd
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x56a808], 0xffffffff
push 0x80
push 0
push 0x56c822
call fcn.004af620
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x180c]
pop ebx
pop esi
xor ecx, esp
call fcn.004aedbb
add esp, 0x1808
ret 0xc