Function at 0x4a37b0
Capabilities:
Create thread

Disassembly:
mov eax, 0x1808
call fcn.004af840
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 0x4a37ff
push 0x400
push 0x4c5d70
lea eax, [esp + 0x10]
push eax
push str.ExternalViewer
push str.Viewer
call fcn.0045fe40
jmp 0x4a3814
lea edx, [esp + 8]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a3805
cmp word [esp + 8], 0
jne 0x4a3836
xor al, al
pop esi
mov ecx, dword [esp + 0x1804]
xor ecx, esp
call fcn.004af00b
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 0x4a3841
push ebx
lea ecx, [esp + 0x80c]
push ecx
call fcn.0044b230
lea edx, [esp + 0xc]
push edx
call fcn.00432480
test al, al
jne 0x4a39ba
cmp word [esp + 0xc], 0x22
jne 0x4a398a
lea eax, [esp + 0xe]
push 0x22
push eax
call fcn.004affd2
add esp, 8
test eax, eax
je 0x4a39ba
push ebp
push edi
push 0x4cd3ac
push eax
call fcn.004b2ba9
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a39b8
movzx ecx, word [ebx]
push ecx
mov ebp, ebx
call fcn.0046f2f0
test al, al
je 0x4a38d1
lea esp, [esp]
movzx edx, word [ebp + 2]
add ebp, 2
push edx
call fcn.0046f2f0
test al, al
jne 0x4a38c0
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 0x4a38e0
lea edi, [esp + 0x1014]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a3900
mov eax, dword [0x4c7af4]
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 0x4a3920
lea edi, [esp + 0x1014]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a3940
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a3940
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 0x4a3993
lea edx, [esp + 0x14]
push edx
call fcn.00432480
test al, al
jne 0x4a3993
lea eax, [ebp + 2]
mov word [ebx], si
test eax, eax
jne 0x4a3895
jmp 0x4a39b8
lea eax, [esp + 0xc]
jmp 0x4a3893
xor eax, eax
jmp 0x4a39a0
movzx ecx, word [esp + eax + 0x1014]
mov word [esp + eax + 0x814], cx
add eax, 2
test cx, cx
jne 0x4a39a0
pop edi
pop ebp
mov eax, dword [esp + 8]
push 1
push eax
mov ecx, 0x56a800
call fcn.004a1740
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.004a19f0
test al, al
jne 0x4a3a2f
mov eax, dword [0x56a808]
cmp eax, 0xffffffff
je 0x4a3a17
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x56a808], 0xffffffff
push 0x80
push 0
push 0x56c822
call fcn.004af870
add esp, 0xc
xor al, al
jmp 0x4a3a83
test bl, bl
je 0x4a3a52
cmp dword [0x56a800], 0
je 0x4a3a52
push 0x56a800
push 0x10000
push 0x4a25c0
call fcn.004b067b
jmp 0x4a3a7e
mov eax, dword [0x56a808]
cmp eax, 0xffffffff
je 0x4a3a6d
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x56a808], 0xffffffff
push 0x80
push 0
push 0x56c822
call fcn.004af870
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x180c]
pop ebx
pop esi
xor ecx, esp
call fcn.004af00b
add esp, 0x1808
ret 0xc