Function at 0x401400
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 0x4016cf
xor eax, eax
push 0x208
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
call fcn.00402550
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 0x401493
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x4014e0
lea esp, [esp]
cmp word [esp + eax*2 + 0x34], 0x5c
je 0x4014bd
dec eax
jns 0x4014b0
jmp 0x4014e0
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 0x4014d0
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
nop
nop
nop
nop
nop
nop
push edi
push 8
call fcn.00401de4
mov edi, eax
add esp, 4
test edi, edi
je 0x40152f
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 0x401531
xor edi, edi
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401547
push str.PreprocessCmdLineExW
push eax
call esi
jmp 0x401549
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 0x401567
push str.UninitPotPlayer
push eax
call esi
mov ebx, eax
jmp 0x401569
xor ebx, ebx
test ebx, ebx
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x401583
push str.CreatePotPlayerExW
push eax
call esi
mov ebp, eax
jmp 0x401585
xor ebp, ebp
test ebp, ebp
setne al
and byte [edi + 4], al
mov eax, dword [edi]
test eax, eax
je 0x40159d
push str.DestroyPotPlayer
push eax
call esi
jmp 0x40159f
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 0x4015bb
push str.RunPotPlayerEx
push eax
call esi
jmp 0x4015bd
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 0x4015db
push str.SetPotPlayRegKeyW
push eax
call esi
mov ecx, eax
jmp 0x4015dd
xor ecx, ecx
test ecx, ecx
setne al
and byte [edi + 4], al
je 0x40166c
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 0x401644
push 0x4003
push 0
push 0
call ebp
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x401644
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 0x401646
call ebx
mov eax, dword [edi]
test eax, eax
je 0x401653
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00401e5a
add esp, 4
lea ecx, [esp + 0x13]
xor esi, esi
pop edi
call fcn.00401030
mov eax, esi
jmp 0x4016e6
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 0x40168d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00401e5a
add esp, 4
lea ecx, [esp + 0x13]
mov esi, 0xfffffffe
pop edi
call fcn.00401030
mov eax, esi
jmp 0x4016e6
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.00401ef1
add esp, 0x238
ret 0x10