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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x268
mov eax, dword [0x440018]
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 0x442064
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
je 0x4019f3
cmp dword [esp + 0x54], 0
je 0x4015ad
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.00401dc0
lea ecx, [esp + 0x10]
call fcn.0040c120
mov edx, dword [esp + 0x24]
mov dword [0x44207c], eax
cmp edx, 8
jb 0x401501
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019f8
push edx
push ecx
call fcn.00414006
mov eax, dword [0x44207c]
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 0x401596
push str.SetProcessUserModeExceptionPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessUserModeExceptionPolicy
push dword [0x44207c]
mov dword [0x442078], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetDefaultDllDirectories
push dword [0x44207c]
mov dword [0x442074], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessMitigationPolicy
push dword [0x44207c]
mov dword [0x442070], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessMitigationPolicy
push dword [0x44207c]
mov dword [0x44206c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InstallELAMCertificateInfo
push dword [0x44207c]
mov dword [0x442068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0x442064
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x4019f3
push 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call fcn.00414014
add esp, 4
mov esi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], esi
push 8
push eax
push esi
call fcn.00415820
xor ecx, ecx
lea edi, [esi + 8]
add esp, 0xc
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ecx
cmp esi, edi
je 0x40161e
nop
mov ecx, dword [esi]
cmp ecx, 1
ja 0x40160f
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 0x4015f0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
call fcn.004041f0
mov eax, dword [esp + 0x58]
mov cl, al
and cl, 1
jne 0x40165d
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0
call fcn.00405080
add esp, 4
test al, al
je 0x401659
or dword [esp + 0x50], 1
lea edx, [esp + 0x50]
push ecx
call fcn.00405280
add esp, 4
mov eax, dword [esp + 0x58]
shr eax, 1
and al, 1
jne 0x40168e
push ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], 0
call fcn.00405470
add esp, 4
test al, al
je 0x40168e
or dword [esp + 0x58], 1
lea edx, [esp + 0x58]
push ecx
call fcn.00405670
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4016a1
push 8
push eax
call fcn.00414006
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.00401dc0
lea ecx, [esp + 0x10]
call fcn.0040c120
mov edx, dword [esp + 0x24]
test eax, eax
sete al
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x40171b
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40170d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019fd
push edx
push ecx
call fcn.00414006
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 0x401780
mov dword [0x442078], ecx
mov dword [0x442074], ecx
mov dword [0x442070], ecx
mov dword [0x44206c], ecx
mov dword [0x442068], ecx
mov ecx, dword [0x44207c]
test ecx, ecx
je 0x401765
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.00413ff8
mov esp, ebp
pop ebp
ret 0x10
push 0x208
lea eax, [esp + 0x64]
push 0
push eax
call fcn.00415da0
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 0x4017c5
sub ecx, edx
lea eax, [esp + 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401dc0
sub esp, 8
lea ecx, [esp + 0x18]
call fcn.0040dc50
mov edx, dword [esp + 0x2c]
add esp, 8
test al, al
sete al
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x40183b
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40182d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a02
push edx
push ecx
call fcn.00414006
mov al, byte [esp + 0x17]
add esp, 8
test al, al
je 0x401858
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 0x401765
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.004028f0
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 0x4018b4
call fcn.00413d8f
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4018b4
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004040e0
mov dword [esp + 0x54], 1
jmp 0x40199c
push 0
push 0
push eax
call fcn.00413e91
lea edi, [esi + 8]
test edi, edi
je 0x401a07
test esi, esi
je 0x401a07
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x440a4c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x440a64]
mov dword [edi + 8], eax
push 0x440a4c
mov dword [0x440a64], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x401a60
push 0
push 0x66
push dword [0x4413cc]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
jne 0x40192a
call fcn.004040e0
mov dword [esp + 0x54], 1
jmp 0x40199c
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 0x40198f
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 0x40197a
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 0x401950
call fcn.004040e0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x4019d9
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4019d9
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4019d9
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x42f1a4]
mov ecx, edi
call esi
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0x54]
pop edi
pop esi
xor ecx, esp
call fcn.00413ff8
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041879c
call fcn.0041861f
call fcn.0041861f
call fcn.0041861f
push 1
push 0xc0000005
call fcn.00401f10
int3