Function at 0x4164e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4da5
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x218], edi
call fcn.0046d4f0
test eax, eax
je 0x41659b
push edi
push str.CInstall::SaveDeviceDataToRegistry_:_pszSavedUIUInfoRegPath___s_n
push 0x647288
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x647188], eax
mov eax, 0x647288
add esp, 0xc
mov dword [0x64718c], ecx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416553
mov edi, 0x647188
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416562
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x647188
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edi, dword [ebp - 0x218]
push str.DeviceData
lea ecx, [ebp - 0x220]
call fcn.00403380
mov esi, eax
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00403380
push esi
push eax
lea edx, [ebp - 0x210]
push edx
mov byte [ebp - 4], 1
call fcn.00402910
add esp, 0xc
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416621
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20c]
call fcn.0047aa50
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41664d
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 5
call fcn.0049cb90
test eax, eax
je 0x416673
mov dword [ebp - 0x14], 0x100
mov edx, dword [ebp - 0x210]
mov esi, dword [edx - 0xc]
test esi, esi
jns 0x41668a
push 0x80070057
call fcn.00401b60
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4166ad
push esi
lea ecx, [ebp - 0x210]
call fcn.00402280
mov edx, dword [ebp - 0x210]
push 1
push 0
push 1
push edx
lea ecx, [ebp - 0x20c]
call fcn.0047aeb0
mov ecx, dword [ebp - 0x210]
mov esi, dword [ecx - 0xc]
test esi, esi
jns 0x4166d6
push 0x80070057
call fcn.00401b60
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4166f9
push esi
lea ecx, [ebp - 0x210]
call fcn.00402280
mov ecx, dword [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0047acd0
push str.csInstallPath
lea ecx, [ebp - 0x214]
call fcn.00403380
push ebx
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 6
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csInstallPathExe
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 4]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 7
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csClassType
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 8]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 8
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csEnumFileName
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0xc]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 9
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416846
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csBusTypeAndDeviceID
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x10]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xa
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csBusType
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x14]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xb
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csDeviceID
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x18]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xc
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csDeviceDesc
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x1c]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xd
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41698a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csWaveFileName
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x68]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xe
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4169db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csWaveBusTypeAndDeviceID
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x6c]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0xf
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.csUninstallerFileName
lea ecx, [ebp - 0x214]
call fcn.00403380
lea ecx, [ebx + 0x74]
push ecx
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0x10
call fcn.00408050
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x210]
push 4
push 4
lea ecx, [ebx + 0x20]
push ecx
push str.DriverVer0
push edx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov ecx, dword [ebp - 0x210]
push 4
push 4
lea eax, [ebx + 0x24]
push eax
push str.DriverVer1
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov eax, dword [ebp - 0x210]
push 4
push 4
lea edx, [ebx + 0x28]
push edx
push str.DriverVer2
push eax
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov edx, dword [ebp - 0x210]
push 4
push 4
lea ecx, [ebx + 0x2c]
push ecx
push str.DriverVer3
push edx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov ecx, dword [ebp - 0x210]
push 4
push 4
lea eax, [ebx + 0x30]
push eax
push str.CurrentDriverVer0
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov eax, dword [ebp - 0x210]
push 4
push 4
lea edx, [ebx + 0x34]
push edx
push str.CurrentDriverVer1
push eax
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov edx, dword [ebp - 0x210]
push 4
push 4
lea ecx, [ebx + 0x38]
push ecx
push str.CurrentDriverVer2
push edx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov ecx, dword [ebp - 0x210]
push 4
push 4
lea eax, [ebx + 0x3c]
push eax
push str.CurrentDriverVer3
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
xor esi, esi
lea edi, [ebx + 0x40]
lea ebx, [ebx]
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
je 0x416be9
push esi
lea eax, [ebp - 0x218]
push str.csChildFileName_d
push eax
call fcn.00408cb0
add esp, 0xc
push edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
call fcn.00408050
push esi
lea eax, [ebp - 0x218]
push str.csChildBusTypeAndDeviceID_d
push eax
call fcn.00408cb0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00408050
inc esi
add edi, 8
cmp esi, 5
jb 0x416b80
mov edx, dword [ebp - 0x210]
push 4
push 4
lea ecx, [ebx + 0x78]
push ecx
push str.SetupStatus
push edx
lea ecx, [ebp - 0x20c]
call fcn.0047b260
mov eax, dword [ebp - 0x210]
push 4
push 4
add ebx, 0x594
push ebx
push str.dwDeviceSetupMode
push eax
lea ecx, [ebp - 0x20c]
call fcn.0047b260
call fcn.0046d4f0
test eax, eax
je 0x416cb4
push 0
push str.CInstall::SaveDeviceDataToRegistry_n
push 0x647088
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x647088
mov dword [0x646f88], ecx
add esp, 0xc
mov dword [0x646f8c], edx
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x416c70
mov edi, 0x646f88
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416c81
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x646f88
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416cda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8