Function at 0x40c410
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x55b4f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00504b00
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esi], vtable.CBackProcWnd.0
mov dword [esi + method.CCommandLineInfo.virtual_0], vtable.CList_unsigned_int__unsigned_int_.0
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], 0xa
lea eax, [esi + 0x124]
push eax
mov byte [esp + 0x28], 1
call fcn.004103e0
lea ecx, [esi + 0x168]
push ecx
mov byte [esp + 0x28], 2
call fcn.00463b10
lea edx, [esi + 0x1e8]
push edx
mov byte [esp + 0x28], 3
call fcn.004135e0
lea ecx, [esi + 0x23c]
mov byte [esp + 0x24], 4
call fcn.0050eda2
push 0x1d3
lea ebx, [esi + 0x244]
push ebx
mov byte [esp + 0x2c], 5
call fcn.0046bfe0
mov dword [ebx], vtable.CWarningDlg.0
mov dword [ebx + 0x74], vtable.CWarningDlg.1.0
mov dword [ebx + 0x120], 0x816
mov dword [ebx + 0x124], edi
mov ebx, 6
mov byte [esp + 0x24], bl
call fcn.0050d22b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c519
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x370], eax
lea ecx, [esi + 0x374]
push ecx
mov byte [esp + 0x28], 7
call fcn.004659d0
mov byte [esp + 0x24], 8
mov byte [esi + 0x24], 1
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x154], 0xffffffff
mov dword [esi + 0x150], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
mov dword [esi + 0x160], edi
mov dword [esi + 0x164], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x6c], edi
cmp dword [0x5c9a5c], edi
jne 0x40c5cc
push 0x5c9a58
mov dword [0x5c9a58], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x5c9a5c], ebx
jne 0x40c5e3
cmp dword [0x5c9a60], edi
jne 0x40c5e3
mov eax, 1
jmp 0x40c5e5
xor eax, eax
push edi
push edi
push edi
push edi
mov dword [esi + 0x36c], eax
mov dword [esi + 0x3d8], edi
call fcn.00508907
push eax
lea ecx, [esp + 0x18]
call fcn.0040c150
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push DirectSoundCreate
mov byte [esp + 0x44], 9
mov edx, dword [esp + 0x34]
push str.Realtek_HD_Audio_CPL_for_Vista
push edx
push edi
mov ecx, esi
call fcn.00507c09
push 0x5c9a38
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ebp, [esi + 0x70]
mov dword [esp + 0x18], 0x20
push edi
push edi
push edi
push edi
call ebx
mov dword [ebp], eax
add ebp, 4
sub dword [esp + 0x18], 1
jne 0x40c643
push edi
push 1
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0xf0], eax
call ebx
push edi
push 4
push edi
push edi
push esi
push 0x40d660
mov dword [esi + 0xf4], eax
call fcn.005100c3
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x40c792
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push edi
push edi
lea eax, [esi + 0xf8]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0xfc], eax
call ebx
push edi
push 4
push edi
push edi
push esi
push 0x40e760
mov dword [esi + 0x100], eax
call fcn.005100c3
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x40c70c
mov byte [esp + 0x24], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c7ab
push 2
push edi
push edi
lea eax, [esi + 0x104]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x144], eax
call ebx
push edi
push 4
push edi
push edi
push esi
push 0x40e950
mov dword [esi + 0x148], eax
call fcn.005100c3
mov ebx, eax
cmp ebx, edi
je 0x40c6ee
push 2
push edi
push edi
lea eax, [esi + 0x14c]
push eax
call ebp
mov ecx, dword [ebx + 0x2c]
push eax
push ecx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [ebx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call fcn.0040dd80
mov byte [esp + 0x24], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4