Function at 0x403410
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x433e56
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x4464fc]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4464fc]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
call fcn.0040f123
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403465
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 6
push 0
push 0x437c18
push 0
mov dword [esp + 0x358], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4034ce
push str.SetupDiCreateDeviceInfoList
call fcn.004021d0
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x348], edi
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403b4d
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
lea ecx, [esp + 0x20]
push ecx
xor esi, esi
push esi
mov ebx, 1
push edi
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x20], ebx
call ebp
test eax, eax
je 0x4039ff
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
mov edi, edi
push 0
push 0x100
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call ebx
mov ecx, dword [0x447b48]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
je 0x40353b
mov eax, dword [0x447b48]
cmp dword [eax - 0xc], 0
jne 0x4038c9
mov ecx, dword [0x447b50]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4038d3
mov eax, dword [0x447b6c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4038dd
mov edx, dword [0x447bac]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4038e7
mov ecx, dword [0x447ba4]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4038f1
mov eax, dword [0x447b7c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4038fb
mov edx, dword [0x447bc0]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403905
mov ecx, dword [0x447bbc]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40390f
mov eax, dword [0x447b74]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403919
mov edx, dword [0x447b60]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403923
mov ecx, dword [0x447b4c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40392d
mov eax, dword [0x447b94]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403937
mov edx, dword [0x447ba0]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403941
mov ecx, dword [0x447bc4]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40394b
mov eax, dword [0x447b64]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403955
mov edx, dword [0x447ba8]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40395f
mov ecx, dword [0x447bb8]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403966
mov eax, dword [0x447b70]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40396d
mov edx, dword [0x447bc8]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403974
mov ecx, dword [0x447b5c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40397b
mov eax, dword [0x447bb4]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403982
mov edx, dword [0x447b68]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403989
mov ecx, dword [0x447b90]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403990
mov eax, dword [0x447b8c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x403997
mov edx, dword [0x447b88]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x40399e
mov ecx, dword [0x447b78]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039a5
mov eax, dword [0x447bb0]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039ac
mov edx, dword [0x447bcc]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039b3
mov ecx, dword [0x447b84]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039ba
mov eax, dword [0x447b80]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039c1
mov edx, dword [0x447b9c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039c8
mov ecx, dword [0x447b98]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039cf
mov eax, dword [0x447b54]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041fd07
add esp, 8
test eax, eax
jne 0x4039d6
lea edx, [esp + 0x20]
push edx
add esi, 1
push esi
push edi
call ebp
test eax, eax
jne 0x403500
jmp 0x403a07
mov eax, 1
jmp 0x4039db
mov eax, 2
jmp 0x4039db
mov eax, 3
jmp 0x4039db
mov eax, 4
jmp 0x4039db
mov eax, 5
jmp 0x4039db
mov eax, 6
jmp 0x4039db
mov eax, 7
jmp 0x4039db
mov eax, 8
jmp 0x4039db
mov eax, 9
jmp 0x4039db
mov eax, 0xa
jmp 0x4039db
mov eax, 0xb
jmp 0x4039db
mov eax, 0xc
jmp 0x4039db
mov eax, 0xd
jmp 0x4039db
mov eax, 0xe
jmp 0x4039db
mov eax, 0xf
jmp 0x4039db
mov eax, 0x10
jmp 0x4039db
mov eax, 0x11
jmp 0x4039db
mov eax, 0x12
jmp 0x4039db
mov eax, 0x13
jmp 0x4039db
mov eax, 0x14
jmp 0x4039db
mov eax, 0x15
jmp 0x4039db
mov eax, 0x16
jmp 0x4039db
mov eax, 0x17
jmp 0x4039db
mov eax, 0x18
jmp 0x4039db
mov eax, 0x19
jmp 0x4039db
mov eax, 0x1a
jmp 0x4039db
mov eax, 0x1b
jmp 0x4039db
mov eax, 0x1c
jmp 0x4039db
mov eax, 0x1d
jmp 0x4039db
mov eax, 0x1e
jmp 0x4039db
mov eax, 0x1f
jmp 0x4039db
mov eax, 0x20
jmp 0x4039db
mov eax, 0x21
xor ecx, ecx
lea ecx, [ecx]
mov dl, byte [esp + ecx + 0x3c]
mov byte [esp + ecx + 0x13c], dl
add ecx, 1
test dl, dl
jne 0x4039e0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x168], dl
jmp 0x403a03
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403a09
xor ebx, ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [0x447b48]
cmp dword [eax - 0xc], 0
je 0x403a67
push 8
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x447b48
call fcn.00402250
push eax
mov ecx, 0x447b58
mov byte [esp + 0x34c], 1
call fcn.00401b00
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x348], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 1
jne 0x403b1d
xor eax, eax
mov cl, byte [esp + eax + 0x13c]
mov byte [esp + eax + 0x23c], cl
add eax, 1
test cl, cl
jne 0x403a72
push 7
mov byte [esp + 0x265], cl
push str.CC_0401
lea ecx, [esp + 0x20]
call fcn.00401a70
push str.RealtekInstallShield
lea ecx, [esp + 0x18]
push 0x4479b4
push ecx
call fcn.00402450
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403aed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x403b1d
mov edx, dword [esp + 0x1c]
push 0x100
lea ecx, [esp + 0x240]
push ecx
push 1
push 0
push str.PnPID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x348], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0041f013
add esp, 0x338
ret