Function at 0x401460
Capabilities:
Hide graphical window
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x268
mov eax, dword [0x442018]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x58]
push eax
push 0
push 0x4441c4
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
je 0x401a13
cmp dword [esp + 0x54], 0
je 0x4015cd
push 0xc
push str.kernel32.dll
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
call fcn.00401ec0
lea ecx, [esp + 0x10]
call fcn.0040c110
mov edx, dword [esp + 0x24]
mov dword [0x4441dc], eax
cmp edx, 8
jb 0x401521
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401512
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a18
push edx
push ecx
call fcn.004143f9
mov eax, dword [0x4441dc]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], cx
test eax, eax
je 0x4015b6
push str.SetProcessUserModeExceptionPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessUserModeExceptionPolicy
push dword [0x4441dc]
mov dword [0x4441d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetDefaultDllDirectories
push dword [0x4441dc]
mov dword [0x4441d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessMitigationPolicy
push dword [0x4441dc]
mov dword [0x4441d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessMitigationPolicy
push dword [0x4441dc]
mov dword [0x4441cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InstallELAMCertificateInfo
push dword [0x4441dc]
mov dword [0x4441c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0x4441c4
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x401a13
push 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call fcn.00414407
add esp, 4
mov esi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], esi
push 8
push eax
push esi
call fcn.00415cb0
xor ecx, ecx
lea edi, [esi + 8]
add esp, 0xc
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ecx
cmp esi, edi
je 0x40163e
nop
mov ecx, dword [esi]
cmp ecx, 1
ja 0x40162f
mov eax, ecx
lea edx, [esp + 0x50]
shr eax, 5
and ecx, 0x1f
lea edx, [edx + eax*4]
mov eax, 1
shl eax, cl
or dword [edx], eax
add esi, 4
cmp esi, edi
jne 0x401610
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
call fcn.00404210
mov eax, dword [esp + 0x58]
mov cl, al
and cl, 1
jne 0x40167d
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0
call fcn.004050a0
add esp, 4
test al, al
je 0x401679
or dword [esp + 0x50], 1
lea edx, [esp + 0x50]
push ecx
call fcn.004052a0
add esp, 4
mov eax, dword [esp + 0x58]
shr eax, 1
and al, 1
jne 0x4016ae
push ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], 0
call fcn.00405490
add esp, 4
test al, al
je 0x4016ae
or dword [esp + 0x58], 1
lea edx, [esp + 0x58]
push ecx
call fcn.00405690
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4016c1
push 8
push eax
call fcn.004143f9
add esp, 8
push 0xc
push str.Riched20.dll
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
call fcn.00401ec0
lea ecx, [esp + 0x10]
call fcn.0040c110
mov edx, dword [esp + 0x24]
test eax, eax
sete al
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x40173b
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40172d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a1d
push edx
push ecx
call fcn.004143f9
mov al, byte [esp + 0x17]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], cx
test al, al
je 0x4017a0
mov dword [0x4441d8], ecx
mov dword [0x4441d4], ecx
mov dword [0x4441d0], ecx
mov dword [0x4441cc], ecx
mov dword [0x4441c8], ecx
mov ecx, dword [0x4441dc]
test ecx, ecx
je 0x401785
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004143eb
mov esp, ebp
pop ebp
ret 0x10
push 0x208
lea eax, [esp + 0x64]
push 0
push eax
call fcn.00416230
add esp, 0xc
lea eax, [esp + 0x60]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
lea edx, [ecx + 2]
mov dword [esp + 0x24], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017e5
sub ecx, edx
lea eax, [esp + 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401ec0
sub esp, 8
lea ecx, [esp + 0x18]
call fcn.0040dc00
mov edx, dword [esp + 0x2c]
add esp, 8
test al, al
sete al
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x40185b
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40184d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a22
push edx
push ecx
call fcn.004143f9
mov al, byte [esp + 0x17]
add esp, 8
test al, al
je 0x401878
push 0x10
push str.Critical_Error_
push str.Verification_of_your_TeamViewer_Note_version_failed__nTeamViewer_Note_will_quit_for_security_reasons._Please_reinstall_TeamViewer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401785
push dword [ebp + 0x10]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
xorps xmm0, xmm0
mov edx, esi
movlpd qword [esp + 0x5c], xmm0
call fcn.00402910
add esp, 4
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4018d4
call fcn.00414182
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4018d4
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404100
mov dword [esp + 0x54], 1
jmp 0x4019bc
push 0
push 0
push eax
call fcn.00414284
lea edi, [esi + 8]
test edi, edi
je 0x401a27
test esi, esi
je 0x401a27
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x442a4c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x442a64]
mov dword [edi + 8], eax
push 0x442a4c
mov dword [0x442a64], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x401a40
push 0
push 0x66
push dword [0x44352c]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
jne 0x40194a
call fcn.00404100
mov dword [esp + 0x54], 1
jmp 0x4019bc
push dword [ebp + 0x14]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4019af
mov esi, dword [esp + 0x28]
nop
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40199a
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x401970
call fcn.00404100
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x4019f9
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4019f9
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4301b4]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4019f9
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4301b4]
mov ecx, edi
call esi
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0x54]
pop edi
pop esi
xor ecx, esp
call fcn.004143eb
mov esp, ebp
pop ebp
ret 0x10
call fcn.00418c2c
call fcn.00418aaf
call fcn.00418aaf
call fcn.00418aaf
push 1
push 0xc0000005
call fcn.00401d70
int3