Function at 0x401420
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x238
mov eax, dword [0x412110]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x244]
xor ecx, ecx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 1
push ebx
push ebp
mov ebp, dword [esp + 0x244]
cpuid
push esi
lea esi, [esp + 0x24]
mov dword [esp + 0x20], ebp
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [esp + 0x30], 0x2000000
je 0x40170a
xor eax, eax
push 0x208
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
call fcn.00402590
add esp, 0xc
lea eax, [esp + 0x34]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x34]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014b3
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x401500
lea esp, [esp]
cmp word [esp + eax*2 + 0x34], 0x5c
je 0x4014dd
dec eax
jns 0x4014d0
jmp 0x401500
add eax, eax
lea edx, [esp + 0x36]
mov ecx, str.PotPlayer.dll
sub eax, ecx
add edx, eax
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4014f0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0xf]
call fcn.00401020
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x13]
call fcn.00401040
test al, al
je 0x4016cc
push edi
push 8
call fcn.00401e24
mov edi, eax
add esp, 4
test edi, edi
je 0x40154f
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
setne al
mov byte [edi + 4], al
jmp 0x401551
xor edi, edi
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401567
push str.PreprocessCmdLineExW
push eax
call esi
jmp 0x401569
xor eax, eax
test eax, eax
mov dword [esp + 0x1c], eax
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x401587
push str.UninitPotPlayer
push eax
call esi
mov ebx, eax
jmp 0x401589
xor ebx, ebx
test ebx, ebx
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x4015a3
push str.CreatePotPlayerExW
push eax
call esi
mov ebp, eax
jmp 0x4015a5
xor ebp, ebp
test ebp, ebp
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x4015bd
push str.DestroyPotPlayer
push eax
call esi
jmp 0x4015bf
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x4015db
push str.RunPotPlayerEx
push eax
call esi
jmp 0x4015dd
xor eax, eax
test eax, eax
mov dword [esp + 0x18], eax
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x4015fb
push str.SetPotPlayRegKeyW
push eax
call esi
mov ecx, eax
jmp 0x4015fd
xor ecx, ecx
test ecx, ecx
setne al
and byte [edi + 4], al
je 0x40168f
push str.PotPlayerMini
push 0
call ecx
push 1
push dword [esp + 0x264]
push dword [esp + 0x30]
push dword [esp + 0x38]
call dword [esp + 0x34]
add esp, 0x18
test eax, eax
je 0x401664
push 0x4003
push 0
push 0
call ebp
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x401664
call dword [esp + 0x18]
push ebp
mov esi, eax
call dword [esp + 0x18]
add esp, 4
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401666
call ebx
mov eax, dword [edi]
test eax, eax
je 0x401673
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00401e9a
add esp, 4
lea ecx, [esp + 0x13]
xor esi, esi
pop edi
call fcn.00401030
mov eax, esi
jmp 0x401721
push 0
push str.Error
push str.Cannot_find_or_init_PotPlayer.dll
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [edi]
test eax, eax
je 0x4016b0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00401e9a
add esp, 4
lea ecx, [esp + 0x13]
mov esi, 0xfffffffe
pop edi
call fcn.00401030
mov eax, esi
jmp 0x401721
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
push 0
push str.Error
cmp eax, 0x12
jne 0x4016eb
push dword [0x4120c8]
jmp 0x4016f0
push str.PotPlayer.dll_is_modified_or_hacked...
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0xf]
mov esi, 0xfffffffd
call fcn.00401030
mov eax, esi
jmp 0x401721
push 0
push str.Error
push str.PotPlayer_need_SSE2_instruction
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
mov ecx, dword [esp + 0x240]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401f31
add esp, 0x238
ret 0x10