Function at 0x4083a0
Capabilities:
Accept command line arguments
Create thread
Log keystrokes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x4aff10]
push ebx
mov dword [esp + 0x8ac], eax
mov al, byte [0x4b0264]
push esi
xor ebx, ebx
cmp al, bl
push edi
mov esi, ecx
jne 0x408505
mov eax, dword [ebp + 8]
push eax
call fcn.00407300
cmp eax, ebx
jl 0x408bc8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, esi
call fcn.00401d10
mov ecx, esi
call fcn.00408260
lea eax, [esp + 0x30]
push eax
push str.UIErrorMode
mov dword [esp + 0x38], ebx
call fcn.00437a50
add esp, 8
test eax, eax
je 0x408417
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00431640
call fcn.00427b90
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push eax
lea ecx, [esp + 0x40]
call fcn.0042f130
mov ecx, esi
call fcn.00402c20
test eax, eax
je 0x4084a1
call edi
mov esi, eax
cmp word [esi], bx
je 0x40847e
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCR71.dll_wcslen]
mov ecx, dword [str.Class_of_CyberLink_Universal_Player]
add esp, 4
lea edx, [eax + eax + 2]
lea eax, [esp + 0x20]
push eax
push ebx
push 0x4a
push ebx
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
call dword [0x4b00c8]
push eax
call dword [0x4b0124]
lea ecx, [esp + 0x3c]
call fcn.0042cd50
mov eax, 0x80004005
mov ecx, dword [esp + 0x8b4]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x4c], ebx
jne 0x4084fc
call fcn.00436360
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0042ce70
mov edi, eax
cmp edi, ebx
jl 0x408703
mov ecx, esi
call fcn.004020f0
test eax, eax
jne 0x4084fc
mov ecx, esi
call fcn.00402ae0
test eax, eax
jne 0x4084fc
mov ecx, esi
call fcn.00406c20
test eax, eax
jne 0x40851f
mov ecx, dword [0x4b0168]
cmp ecx, ebx
je 0x4084fc
mov esi, ecx
call fcn.00483560
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0042cd50
mov eax, 0x80004005
mov ecx, dword [esp + 0x8b4]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
lea edx, [esp + 0x18]
push edx
push str.HasCDKEY
mov dword [esp + 0x20], ebx
call fcn.00437a10
add esp, 0xc
test eax, eax
je 0x40854a
cmp dword [esp + 0x14], 1
jne 0x40854a
push ebx
call fcn.0041fd10
add esp, 4
call fcn.0042b6b0
mov edi, 3
cmp eax, edi
jne 0x40855d
call fcn.00485660
push ebx
lea eax, [esp + 0x20]
push eax
push str.UIStartupFullScreen
mov dword [esp + 0x28], ebx
call fcn.00437a10
add esp, 0xc
test eax, eax
je 0x408581
cmp dword [esp + 0x1c], ebx
je 0x408581
mov dword [ebp + 8], edi
cmp dword [esp + 0x40], ebx
je 0x40858a
mov dword [ebp + 8], edi
push 0xe8
mov edi, 0x80004005
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.004876fc
add esp, 4
cmp eax, ebx
je 0x4085c5
mov ecx, eax
call fcn.00473060
jmp 0x4085c7
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x408703
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push ebx
push SysReAllocString
push str.CommandWindow
push ecx
mov dword [eax], ebx
mov eax, esp
lea ecx, [esp + 0x98]
mov dword [esp + 0x30], esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x60]
push ebx
call fcn.00408040
cmp eax, ebx
je 0x408703
mov ecx, dword [esi + 0x60]
push 0x416780
push 1
call fcn.00473e80
mov ecx, dword [esi + 0x60]
push 0x4095f0
push 2
call fcn.00473e80
mov ecx, dword [esi + 0x60]
push 0x416780
push 3
call fcn.00473e80
mov ecx, dword [esi + 0x60]
push 0x416780
push 5
call fcn.00473e80
mov ecx, dword [esi + 0x60]
push 0x416780
push 6
call fcn.00473e80
mov ecx, dword [esi + 0x60]
push 0x416780
push 7
call fcn.00473e80
mov edx, dword [esi + 0x60]
mov eax, dword [edx + 4]
push eax
call fcn.00433320
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.UISkinRandom
mov dword [esp + 0x20], ebx
call fcn.00437910
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebx
je 0x408695
mov ecx, dword [esi + 0x60]
call fcn.00476b80
mov eax, dword [ebp + 8]
cmp eax, 3
mov ecx, dword [esi + 0x60]
jne 0x4086f7
push 1
call fcn.00476310
mov edi, eax
cmp edi, ebx
jl 0x408703
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x60]
mov dword [esp + 0x20], edx
push ebx
lea edx, [esp + 0x24]
push edx
add eax, 0x24
push 0x22
mov word [esp + 0x6c], 3
mov dword [esp + 0x74], 0xffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov edi, eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4086ff
push eax
call fcn.00476310
mov edi, eax
cmp edi, ebx
jge 0x408723
lea ecx, [esp + 0x3c]
call fcn.0042cd50
mov eax, edi
mov ecx, dword [esp + 0x8b4]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push ebx
push 0x403fc0
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, esi
call fcn.00401f90
call fcn.00427710
lea ecx, [esp + 0x14]
push ecx
push str.HasCDKEY
mov dword [esp + 0x1c], ebx
call fcn.00437a50
add esp, 8
test eax, eax
je 0x40875f
cmp dword [esp + 0x14], ebx
jne 0x4087d9
call fcn.00433ad0
test eax, eax
jne 0x40877e
mov edx, dword [esp + 0x14]
push edx
push str.HasCDKEY
call fcn.00437a90
add esp, 8
test eax, eax
je 0x4087d9
call fcn.0042b6b0
mov edi, eax
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x50]
lea edx, [esp + 0x10]
add eax, 0x50
push edx
push eax
call dword [ecx + 0x14]
mov eax, edi
sub eax, ebx
je 0x4087a2
sub eax, 2
jne 0x4087d9
mov eax, dword [esp + 0x10]
push ebx
push 0x68
push eax
call fcn.00424b20
add esp, 0xc
push 0x7d
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.HasCDKEY
call fcn.00437a10
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x4084fc
push ebx
push str.UI_EQUALIZER
call fcn.004379e0
push 0xfa32
push str.UI_PITCH
call fcn.004379e0
add esp, 0x10
call fcn.004339b0
test eax, eax
setne dl
movzx eax, dl
mov dword [esi + 0x44], eax
call fcn.00401000
cmp dword [esi + 0x44], ebx
movzx eax, al
mov dword [esi + 0x48], eax
je 0x40882d
cmp eax, ebx
je 0x40882d
call fcn.00401030
push ebx
push ebx
push ebx
push 0x1025
call dword [0x4b0138]
push ebx
lea ecx, [esp + 0x20]
push ecx
push str.UIAlwaysOnTop
call fcn.00437910
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4088be
lea edx, [esp + 0x10]
mov dword [esp + 0x78], edx
lea eax, [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x20]
push edx
add eax, 0x24
push 0x4e85
mov dword [esp + 0x18], ebx
mov word [esp + 0x68], 3
mov dword [esp + 0x70], 0xb
mov word [esp + 0x78], 0x13
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x403980
push 2
push 0x10
lea ecx, [esp + 0x6c]
push ecx
call fcn.00487894
lea ecx, [esp + 0x3c]
call fcn.00430510
cmp dword [esp + 0x3c], ebx
je 0x4088ee
push ebx
lea edx, [esp + 0x14]
push edx
push str.PlayAtOnce
mov dword [esp + 0x1c], ebx
call fcn.00437a10
add esp, 0xc
test eax, eax
je 0x40891e
mov eax, dword [esp + 0x10]
jmp 0x408913
cmp eax, ebx
je 0x408909
mov ecx, dword [esi + 0x60]
call fcn.00471a70
cmp eax, ebx
je 0x40891e
mov ecx, dword [eax]
push ebx
push 0xf
push eax
call dword [ecx + 0x28]
jmp 0x40891e
cmp dword [esp + 0x48], ebx
jne 0x408917
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x40891e
mov ecx, esi
call fcn.00402a70
call fcn.0042b710
push ebx
lea edx, [esp + 0x38]
push edx
push str.UI_SetFocus
mov dword [esp + 0x40], ebx
call fcn.00437a10
add esp, 0xc
test eax, eax
je 0x4089b2
cmp dword [esp + 0x34], ebx
je 0x4089b2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x50]
lea edx, [esp + 0x10]
add eax, 0x50
push edx
push eax
mov dword [esp + 0x20], edi
call dword [ecx + 0x14]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x10]
setge cl
xor edx, edx
cmp edi, eax
setne dl
test edx, ecx
je 0x4089b2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esp + 0x18]
push ebx
push edx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, esi
call fcn.00402350
mov dword [esi + 0x50], eax
xor eax, eax
mov word [esp + 0x298], bx
mov ecx, 0x81
lea edi, [esp + 0x29a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x90], bx
mov ecx, 0x81
lea edi, [esp + 0x92]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x29c]
push ecx
mov ecx, esi
call fcn.00405390
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x29c]
push eax
mov ecx, esi
call fcn.004024f0
push 1
lea ecx, [esp + 0x3c]
push ecx
push str.UI_Intel965Init
mov dword [esp + 0x44], 1
call fcn.00437910
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x408baa
xor eax, eax
mov word [esp + 0x4a0], bx
mov ecx, 0x81
lea edi, [esp + 0x4a2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x6a8], bx
mov ecx, 0x81
lea edi, [esp + 0x6aa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCR71.dll_wcscpy]
lea edx, [esp + 0x298]
push edx
lea eax, [esp + 0x4a4]
push eax
call edi
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x6b4]
push edx
call edi
mov edi, dword [sym.imp.MSVCR71.dll_wcsstr]
lea eax, [esp + 0x4b0]
push str.INTEL
push eax
call edi
add esp, 0x18
test eax, eax
je 0x408baa
lea ecx, [esp + 0x6a8]
push str.G965
push ecx
call edi
add esp, 8
test eax, eax
je 0x408baa
push ebx
push str.UI_Intel965Init
call fcn.004379e0
push 0x100010
push str.UI_VMRForceMixing
call fcn.004379e0
push 5
push str.UIUseVMR
call fcn.004379e0
push 2
push str.UIEnableVMode
call fcn.004379e0
push 1
push str.UIUseHVA
call fcn.004379e0
push 1
push str.UIClrCtrl_CurSel
call fcn.004379e0
push ebx
push str.iHWMC
call fcn.004379e0
mov eax, dword [0x4b01a8]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
mov ecx, dword [0x4b01a8]
add esp, 0x38
call fcn.00405d80
mov edi, eax
cmp edi, ebx
je 0x408b89
jmp 0x408b60
mov eax, dword [edi]
push edi
call dword [eax + 0x28]
cmp eax, 1
jne 0x408b78
mov ecx, dword [edi]
push ebx
push 0x4ecb
push ebx
push edi
call dword [ecx + 0x44]
mov ecx, dword [0x4b01a8]
call fcn.00405d80
mov edi, eax
cmp edi, ebx
jne 0x408b60
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov eax, dword [0x4b01a8]
je 0x408ba1
mov edx, dword [eax + 0x10]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], edx
jmp 0x408baa
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ecx
mov esi, dword [esi + 0x60]
cmp esi, ebx
je 0x408bbd
mov edx, dword [esi + 4]
push edx
call fcn.00432580
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0042cd50
xor eax, eax
mov ecx, dword [esp + 0x8b4]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4