Function at 0x405660
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4675d4
push eax
mov eax, 0x19bc
mov dword fs:[0], esp
call fcn.0044d240
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004318b0
test eax, eax
je 0x405724
push 0
lea eax, [esp + 0xc4]
push str.CInstall_::_UninstallInstalledDevices_n
push eax
call fcn.0044cb10
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x1c0]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
lea ecx, [esp + 0x4c0]
call fcn.0040a800
mov eax, dword [0x4855a4]
mov dword [esp + 0x19d0], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 0xe50]
mov byte [esp + 0x19d0], 2
push ecx
lea ecx, [esp + 0x40]
call fcn.0045cec5
mov edx, dword [ebp + 0xe50]
lea ecx, [esp + 0x40]
add edx, 4
push edx
call fcn.0045cec5
mov eax, dword [ebp + 0xe50]
lea ecx, [esp + 0x44]
add eax, 8
push eax
call fcn.0045cec5
mov ecx, dword [ebp + 0xe50]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x4c]
call fcn.0045cec5
mov edx, dword [ebp + 0xe50]
lea ecx, [esp + 0x4c]
add edx, 0x10
push edx
call fcn.0045cec5
mov eax, dword [ebp + 0xe50]
lea ecx, [esp + 0x50]
add eax, 0x14
push eax
call fcn.0045cec5
mov ecx, dword [ebp + 0xe50]
add ecx, 0x18
push ecx
lea ecx, [esp + 0x58]
call fcn.0045cec5
mov edx, dword [ebp + 0xe50]
lea ecx, [esp + 0x58]
add edx, 0x1c
push edx
call fcn.0045cec5
mov eax, dword [ebp + 0xe50]
lea ecx, [esp + 0x5c]
add eax, 0x20
push eax
call fcn.0045cec5
mov ecx, dword [ebp + 0xe50]
add ecx, 0x24
push ecx
lea ecx, [esp + 0x64]
call fcn.0045cec5
mov edx, dword [ebp + 0xe50]
lea ecx, [esp + 0x64]
add edx, 0x28
push edx
call fcn.0045cec5
mov eax, dword [ebp + 0xe50]
lea ecx, [esp + 0x68]
add eax, 0x2c
push eax
call fcn.0045cec5
mov ecx, dword [ebp + 0xe50]
add ecx, 0x30
push ecx
lea ecx, [esp + 0x70]
call fcn.0045cec5
mov edx, dword [ebp + 0xe50]
lea ecx, [esp + 0x70]
add edx, 0x34
push edx
call fcn.0045cec5
mov eax, dword [ebp + 0xe50]
lea ecx, [esp + 0x74]
add eax, 0x38
push eax
call fcn.0045cec5
mov eax, dword [ebp + 0xe50]
mov edi, dword [ebp + 0x40c]
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0x44]
mov dword [esp + 0x80], edx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 0x50]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x90], edx
mov edx, dword [eax + 0x58]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x98], edx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 0x64]
or ch, 0x40
mov dword [esp + 0xa0], eax
test edi, edi
mov dword [esp + 0x88], ecx
je 0x405aa9
mov eax, edi
mov edi, dword [edi]
lea ecx, [esp + 0xc]
lea esi, [eax + 8]
push esi
call fcn.0045cec5
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.0045cec5
lea edx, [esi + 8]
lea ecx, [esp + 0x14]
push edx
call fcn.0045cec5
lea eax, [esi + 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.0045cec5
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045cec5
lea edx, [esi + 0x14]
lea ecx, [esp + 0x20]
push edx
call fcn.0045cec5
lea eax, [esi + 0x18]
lea ecx, [esp + 0x24]
push eax
call fcn.0045cec5
lea ecx, [esi + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0045cec5
lea edx, [esi + 0x20]
lea ecx, [esp + 0x2c]
push edx
call fcn.0045cec5
lea eax, [esi + 0x24]
lea ecx, [esp + 0x30]
push eax
call fcn.0045cec5
lea ecx, [esi + 0x28]
push ecx
lea ecx, [esp + 0x38]
call fcn.0045cec5
mov esi, dword [esi + 0x2c]
cmp esi, 1
mov dword [esp + 0x38], esi
je 0x4059fa
mov eax, dword [ebp + 0x3d4]
test eax, eax
jne 0x405aa1
lea edx, [esp + 0x20]
lea ecx, [esp + 0x50]
push edx
call fcn.0045cec5
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
push eax
call fcn.0045cec5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0045cec5
call fcn.004318b0
test eax, eax
je 0x405a65
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
lea edx, [esp + 0xcc]
push str.csDeviceID___s__csBusType___s__csClassType___s_n
push edx
call fcn.0044cb10
add esp, 0x14
lea eax, [esp + 0xc0]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
test edi, edi
jne 0x405a7a
mov eax, dword [esp + 0x88]
or ah, 0x80
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x3c]
push 0
push ecx
lea ecx, [esp + 0xac]
call fcn.00439c40
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x4c0]
push edx
call fcn.0040e020
test edi, edi
jne 0x40594d
call fcn.004318b0
test eax, eax
je 0x405b49
push 0
lea eax, [esp + 0x3c4]
push str.CInstall_::_UninstallInstalledDevices_n
push eax
call fcn.0044cb10
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x19d0], 0xc
call fcn.0045cdd8
lea ecx, [esp + 0x30]
mov byte [esp + 0x19d0], 0xb
call fcn.0045cdd8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19d0], 0xa
call fcn.0045cdd8
lea ecx, [esp + 0x28]
mov byte [esp + 0x19d0], 9
call fcn.0045cdd8
lea ecx, [esp + 0x24]
mov byte [esp + 0x19d0], 8
call fcn.0045cdd8
lea ecx, [esp + 0x20]
mov byte [esp + 0x19d0], 7
call fcn.0045cdd8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19d0], 6
call fcn.0045cdd8
lea ecx, [esp + 0x18]
mov byte [esp + 0x19d0], 5
call fcn.0045cdd8
lea ecx, [esp + 0x14]
mov byte [esp + 0x19d0], 4
call fcn.0045cdd8
lea ecx, [esp + 0x10]
mov byte [esp + 0x19d0], 3
call fcn.0045cdd8
lea ecx, [esp + 0xc]
mov byte [esp + 0x19d0], 1
call fcn.0045cdd8
lea ecx, [esp + 0x78]
mov byte [esp + 0x19d0], 0x1b
call fcn.0045cdd8
lea ecx, [esp + 0x74]
mov byte [esp + 0x19d0], 0x1a
call fcn.0045cdd8
lea ecx, [esp + 0x70]
mov byte [esp + 0x19d0], 0x19
call fcn.0045cdd8
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19d0], 0x18
call fcn.0045cdd8
lea ecx, [esp + 0x68]
mov byte [esp + 0x19d0], 0x17
call fcn.0045cdd8
lea ecx, [esp + 0x64]
mov byte [esp + 0x19d0], 0x16
call fcn.0045cdd8
lea ecx, [esp + 0x60]
mov byte [esp + 0x19d0], 0x15
call fcn.0045cdd8
mov byte [esp + 0x19d0], 0x14
lea ecx, [esp + 0x5c]
call fcn.0045cdd8
lea ecx, [esp + 0x58]
mov byte [esp + 0x19d0], 0x13
call fcn.0045cdd8
lea ecx, [esp + 0x54]
mov byte [esp + 0x19d0], 0x12
call fcn.0045cdd8
lea ecx, [esp + 0x50]
mov byte [esp + 0x19d0], 0x11
call fcn.0045cdd8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19d0], 0x10
call fcn.0045cdd8
lea ecx, [esp + 0x48]
mov byte [esp + 0x19d0], 0xf
call fcn.0045cdd8
lea ecx, [esp + 0x44]
mov byte [esp + 0x19d0], 0xe
call fcn.0045cdd8
lea ecx, [esp + 0x40]
mov byte [esp + 0x19d0], 0xd
call fcn.0045cdd8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x19d0], 0
call fcn.0045cdd8
lea ecx, [esp + 0x4c0]
mov dword [esp + 0x19d0], 0xffffffff
call fcn.0040ab50
mov ecx, dword [esp + 0x19c8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x19c8
ret