Function at 0x408420
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 [0x4b5320]
push ebx
mov dword [esp + 0x8ac], eax
mov al, byte [0x4b5674]
push esi
xor ebx, ebx
test al, al
push edi
mov esi, ecx
jne 0x4085bd
mov eax, dword [ebp + 8]
push eax
call fcn.00407360
cmp eax, ebx
jl 0x408ce4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, esi
call fcn.00401d10
mov ecx, esi
call fcn.004082e0
lea eax, [esp + 0x30]
push eax
push str.UIErrorMode
mov dword [esp + 0x38], ebx
call fcn.0043ae10
add esp, 8
test eax, eax
je 0x408497
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.004349c0
call fcn.0042a160
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push eax
lea ecx, [esp + 0x40]
call fcn.00432110
mov ecx, esi
call fcn.00402e00
test eax, eax
je 0x408521
call edi
mov esi, eax
cmp word [esi], bx
je 0x4084fe
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 [0x4b54dc]
push eax
call dword [0x4b5538]
lea ecx, [esp + 0x3c]
call fcn.0042f680
mov eax, 0x80004005
mov ecx, dword [esp + 0x8b4]
call fcn.0048c3c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x4c], ebx
jne 0x4085b4
call fcn.00439720
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0042f7a0
mov edi, eax
cmp edi, ebx
jl 0x4087bf
mov ecx, esi
call fcn.00402170
test eax, eax
jne 0x4085b4
mov ecx, esi
call fcn.00402cc0
test eax, eax
jne 0x4085b4
mov ecx, esi
call fcn.00406c80
test eax, eax
jne 0x4085d7
mov ecx, dword [0x4b55b8]
cmp ecx, ebx
je 0x408580
mov esi, ecx
call fcn.0040f7d0
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [0x4b55bc]
cmp ecx, ebx
je 0x40859a
mov esi, ecx
call fcn.0043ff20
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [0x4b5578]
cmp ecx, ebx
je 0x4085b4
mov esi, ecx
call fcn.00488150
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.0042f680
mov eax, 0x80004005
mov ecx, dword [esp + 0x8b4]
call fcn.0048c3c7
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.0043add0
add esp, 0xc
test eax, eax
je 0x408602
cmp dword [esp + 0x14], 1
jne 0x408602
push ebx
call fcn.004221c0
add esp, 4
call fcn.0042dc10
mov edi, 3
cmp eax, edi
jne 0x408615
call fcn.0048a240
push ebx
lea eax, [esp + 0x1c]
push eax
push str.UIStartupFullScreen
mov dword [esp + 0x24], ebx
call fcn.0043add0
add esp, 0xc
test eax, eax
je 0x408639
cmp dword [esp + 0x18], ebx
je 0x408639
mov dword [ebp + 8], edi
cmp dword [esp + 0x40], ebx
je 0x408642
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.0048c300
add esp, 4
cmp eax, ebx
je 0x40867d
mov ecx, eax
call fcn.004779a0
jmp 0x40867f
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x4087bf
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push ebx
push SysReAllocString
push str.CommandWindow
push ecx
mov dword [eax], ebx
mov eax, esp
lea ecx, [esp + 0x98]
mov dword [esp + 0x34], esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x60]
push ebx
call fcn.004080c0
cmp eax, ebx
je 0x4087bf
mov ecx, dword [esi + 0x60]
push 0x4183e0
push 1
call fcn.00478710
mov ecx, dword [esi + 0x60]
push 0x409750
push 2
call fcn.00478710
mov ecx, dword [esi + 0x60]
push 0x4183e0
push 3
call fcn.00478710
mov ecx, dword [esi + 0x60]
push 0x4183e0
push 5
call fcn.00478710
mov ecx, dword [esi + 0x60]
push 0x4183e0
push 6
call fcn.00478710
mov ecx, dword [esi + 0x60]
push 0x4183e0
push 7
call fcn.00478710
mov edx, dword [esi + 0x60]
mov eax, dword [edx + 4]
push eax
call fcn.004366a0
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.UISkinRandom
mov dword [esp + 0x20], ebx
call fcn.0043acd0
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebx
je 0x40874d
mov ecx, dword [esi + 0x60]
call fcn.0047b5b0
cmp dword [ebp + 8], 3
jne 0x4087ad
mov ecx, dword [esi + 0x60]
push 1
call fcn.0047ac60
mov edi, eax
cmp edi, ebx
jl 0x4087bf
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 0x4087bb
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 0x60]
call fcn.0047ac60
mov edi, eax
cmp edi, ebx
jge 0x4087df
lea ecx, [esp + 0x3c]
call fcn.0042f680
mov eax, edi
mov ecx, dword [esp + 0x8b4]
call fcn.0048c3c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push ebx
push 0x4041e0
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, esi
call fcn.00402010
call fcn.00429cc0
lea edx, [esp + 0x14]
push edx
push str.HasCDKEY
mov dword [esp + 0x1c], ebx
call fcn.0043ae10
add esp, 8
test eax, eax
je 0x40881b
cmp dword [esp + 0x14], ebx
jne 0x408895
call fcn.00436e10
test eax, eax
jne 0x40883a
mov eax, dword [esp + 0x14]
push eax
push str.HasCDKEY
call fcn.0043ae50
add esp, 8
test eax, eax
je 0x408895
call fcn.0042dc10
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 0x40885e
sub eax, 2
jne 0x408895
mov eax, dword [esp + 0x10]
push ebx
push 0x68
push eax
call fcn.004270a0
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.0043add0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x4085b4
push ebx
push str.UI_EQUALIZER
call fcn.0043ada0
push 0xfa32
push str.UI_PITCH
call fcn.0043ada0
add esp, 0x10
call fcn.00436cf0
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0x44], eax
call fcn.00401000
cmp dword [esi + 0x44], ebx
movzx eax, al
mov dword [esi + 0x48], eax
je 0x4088e7
cmp eax, ebx
je 0x4088e7
call fcn.00401030
push ebx
push ebx
push ebx
push 0x1025
call dword [0x4b554c]
push ebx
lea edx, [esp + 0x1c]
push edx
push str.UIAlwaysOnTop
call fcn.0043acd0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x408978
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x20]
push ecx
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 edx, dword [eax]
push eax
call dword [edx + 8]
mov edx, dword [esp + 0x10]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x403ba0
push 2
push 0x10
lea eax, [esp + 0x6c]
push eax
call fcn.0048c494
lea ecx, [esp + 0x18]
push ecx
push str.UI_DisableUpgrade
call fcn.0043ae10
add esp, 8
test eax, eax
je 0x4089dc
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 0x24]
add eax, 0x24
xor ecx, ecx
cmp edi, ebx
sete cl
push ecx
push 0x1e
push eax
call dword [edx]
cmp dword [0x4b015c], 0xfffffffe
je 0x4089dc
mov edi, dword [esp + 0x18]
mov ecx, 0x4b015c
mov eax, ecx
lea esp, [esp]
cmp dword [ecx], 0x1e
jne 0x4089cf
xor edx, edx
cmp edi, ebx
sete dl
mov dword [eax + 8], edx
mov edx, dword [eax + 0x1c]
add eax, 0x1c
cmp edx, 0xfffffffe
mov ecx, eax
jne 0x4089c0
lea ecx, [esp + 0x3c]
call fcn.00433890
cmp dword [esp + 0x3c], ebx
je 0x408a0c
push ebx
lea eax, [esp + 0x14]
push eax
push str.PlayAtOnce
mov dword [esp + 0x1c], ebx
call fcn.0043add0
add esp, 0xc
test eax, eax
je 0x408a3c
mov eax, dword [esp + 0x10]
jmp 0x408a31
cmp eax, ebx
je 0x408a27
mov ecx, dword [esi + 0x60]
call fcn.00476090
cmp eax, ebx
je 0x408a3c
mov ecx, dword [eax]
push ebx
push 0xf
push eax
call dword [ecx + 0x28]
jmp 0x408a3c
cmp dword [esp + 0x48], ebx
jne 0x408a35
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x408a3c
mov ecx, esi
call fcn.00402c50
call fcn.0042dc90
push ebx
lea edx, [esp + 0x38]
push edx
push str.UI_SetFocus
mov dword [esp + 0x40], ebx
call fcn.0043add0
add esp, 0xc
test eax, eax
je 0x408ace
cmp dword [esp + 0x34], ebx
je 0x408ace
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 + 0x24], 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 0x408ace
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
xor ebx, ebx
mov ecx, esi
call fcn.00402530
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
lea edx, [esp + 0x90]
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x29c]
push eax
mov ecx, esi
call fcn.00405410
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x29c]
push edx
mov ecx, esi
call fcn.004026d0
push 1
lea eax, [esp + 0x3c]
push eax
push str.UI_Intel965Init
mov dword [esp + 0x44], 1
call fcn.0043acd0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x408cc1
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
mov word [esp + 0x6a8], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x6aa]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x298]
push ecx
lea edx, [esp + 0x4a4]
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCR71.dll_wcscpy]
push edx
call edi
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x6b4]
push ecx
call edi
mov edi, dword [sym.imp.MSVCR71.dll_wcsstr]
lea edx, [esp + 0x4b0]
push str.INTEL
push edx
call edi
add esp, 0x18
test eax, eax
je 0x408cc1
lea eax, [esp + 0x6a8]
push str.G965
push eax
call edi
add esp, 8
test eax, eax
je 0x408cc1
push ebx
push str.UI_Intel965Init
call fcn.0043ada0
push 0x100010
push str.UI_VMRForceMixing
call fcn.0043ada0
push 5
push str.UIUseVMR
call fcn.0043ada0
push 2
push str.UIEnableVMode
call fcn.0043ada0
push 1
push str.UIUseHVA
call fcn.0043ada0
push 1
push str.UIClrCtrl_CurSel
call fcn.0043ada0
push ebx
push str.iHWMC
call fcn.0043ada0
mov eax, dword [0x4b55b8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx]
mov dword [eax + 0x18], ecx
mov ecx, dword [0x4b55b8]
add esp, 0x38
call fcn.00405de0
mov edi, eax
cmp edi, ebx
je 0x408ca0
mov edx, dword [edi]
push edi
call dword [edx + 0x28]
cmp eax, 1
jne 0x408c8f
mov eax, dword [edi]
push ebx
push 0x4ecb
push ebx
push edi
call dword [eax + 0x44]
mov ecx, dword [0x4b55b8]
call fcn.00405de0
mov edi, eax
cmp edi, ebx
jne 0x408c77
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov eax, dword [0x4b55b8]
je 0x408cb8
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x18], ecx
jmp 0x408cc1
mov edx, dword [eax + 0x10]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], edx
mov esi, dword [esi + 0x60]
cmp esi, ebx
je 0x408cd4
mov eax, dword [esi + 4]
push eax
call fcn.00435900
add esp, 4
call fcn.00438e50
lea ecx, [esp + 0x3c]
call fcn.0042f680
xor eax, eax
mov ecx, dword [esp + 0x8b4]
call fcn.0048c3c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4