Function at 0x405c60
Capabilities:
Contain obfuscated stackstrings
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4808dd
push eax
mov eax, 0x1f1c
mov dword fs:[0], esp
call fcn.004660e0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00441cf0
test eax, eax
je 0x405d25
push 0
lea eax, [esp + 0x620]
push str.CInstall_::_UninstallInstalledDevices_n
push eax
call fcn.00465850
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 + 0x71c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x71c]
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 + 0x61c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x71c]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
lea ecx, [esp + 0xa1c]
call fcn.0040d740
mov eax, dword [0x4a6844]
mov dword [esp + 0x1f34], 0
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 dword [esp + 0x38], eax
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 + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
push 0x403560
push 0x403540
push 5
lea ecx, [esp + 0xd8]
push 8
push ecx
mov byte [esp + 0x1f48], 8
call fcn.00466040
mov eax, dword [0x4a6844]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x1f38], 9
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x1c]
add eax, 4
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 8
push ecx
lea ecx, [esp + 0x24]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x24]
add edx, 0xc
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x28]
add eax, 0x10
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x14
push ecx
lea ecx, [esp + 0x30]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x30]
add edx, 0x18
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x34]
add eax, 0x1c
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x20
push ecx
lea ecx, [esp + 0x3c]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x3c]
add edx, 0x24
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x40]
add eax, 0x28
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x2c
push ecx
lea ecx, [esp + 0x48]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x48]
add edx, 0x30
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
lea ecx, [esp + 0x4c]
add eax, 0x34
push eax
call fcn.00475f95
mov ecx, dword [ebp + 0xe70]
add ecx, 0x38
push ecx
lea ecx, [esp + 0x54]
call fcn.00475f95
mov edx, dword [ebp + 0xe70]
lea ecx, [esp + 0x54]
add edx, 0x3c
push edx
call fcn.00475f95
mov eax, dword [ebp + 0xe70]
mov ebx, dword [ebp + 0x42c]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x60]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x64]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x68]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 0x6c]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x70]
mov dword [esp + 0x88], edx
mov eax, dword [eax + 0x74]
or ch, 0x40
mov dword [esp + 0x8c], eax
test ebx, ebx
mov dword [esp + 0x74], ecx
je 0x4061b9
mov esi, ebx
mov ebx, dword [ebx]
add esi, 8
lea ecx, [esp + 0xb0]
push esi
call fcn.00475f95
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0xb8]
call fcn.00475f95
lea edx, [esi + 8]
lea ecx, [esp + 0xb8]
push edx
call fcn.00475f95
lea eax, [esi + 0xc]
lea ecx, [esp + 0xbc]
push eax
call fcn.00475f95
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esp + 0xc4]
call fcn.00475f95
lea edx, [esi + 0x14]
lea ecx, [esp + 0xc4]
push edx
call fcn.00475f95
lea eax, [esi + 0x18]
lea ecx, [esp + 0xc8]
push eax
call fcn.00475f95
mov eax, esi
lea edx, [esp + 0xb0]
lea ecx, [esi + 0x1c]
sub eax, edx
mov dword [esp + 0x10], ecx
lea edi, [esp + 0xd0]
mov dword [esp + 0x90], eax
mov dword [esp + 0x14], 5
mov eax, dword [esp + 0x10]
lea ecx, [edi - 4]
push eax
call fcn.00475f95
mov ecx, dword [esp + 0x90]
add ecx, edi
push ecx
mov ecx, edi
call fcn.00475f95
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 8
add edi, 8
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x40603d
lea edx, [esi + 0x44]
lea ecx, [esp + 0xf4]
push edx
call fcn.00475f95
lea eax, [esi + 0x48]
lea ecx, [esp + 0xf8]
push eax
call fcn.00475f95
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [esp + 0x100]
call fcn.00475f95
mov edx, dword [esi + 0x50]
add esi, 0x54
mov ecx, 0x146
lea edi, [esp + 0x104]
mov dword [esp + 0x100], edx
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x100], 1
je 0x4060d7
mov eax, dword [ebp + 0x3f4]
test eax, eax
jne 0x4061b1
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x2c]
push eax
call fcn.00475f95
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00475f95
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x24]
push edx
call fcn.00475f95
call fcn.00441cf0
test eax, eax
je 0x40614b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x628]
push str.csDeviceID___s__csBusType___s__csClassType___s_n
push eax
call fcn.00465850
add esp, 0x14
lea ecx, [esp + 0x61c]
push ecx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
test ebx, ebx
jne 0x40615a
mov eax, dword [esp + 0x74]
or ah, 0x80
mov dword [esp + 0x74], eax
lea edx, [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x9c]
call fcn.0044c620
lea eax, [esp + 0x94]
lea ecx, [esp + 0xa1c]
push eax
call fcn.00411870
mov eax, dword [ebp + 0xe70]
mov ecx, dword [esp + 0x74]
mov esi, dword [eax + 0x5c]
or esi, ecx
mov dword [eax + 0x5c], esi
mov eax, dword [ebp + 0xe70]
mov edx, dword [eax + 0x5c]
and dh, 0xbf
mov dword [eax + 0x5c], edx
mov eax, dword [ebp + 0xe70]
mov ecx, dword [eax + 0x5c]
and ch, 0x7f
mov dword [eax + 0x5c], ecx
test ebx, ebx
jne 0x405fa1
call fcn.00441cf0
test eax, eax
je 0x406259
push 0
lea edx, [esp + 0x920]
push str.CInstall_::_UninstallInstalledDevices_n
push edx
call fcn.00465850
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 + 0x81c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x81c]
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 + 0x91c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x81c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1f34], 0x13
call fcn.00475ea8
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1f34], 0x12
call fcn.00475ea8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x1f34], 0x11
call fcn.00475ea8
push 0x403560
push 5
lea ecx, [esp + 0xd4]
push 8
push ecx
mov byte [esp + 0x1f44], 0x10
call fcn.00465d50
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1f34], 0xf
call fcn.00475ea8
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1f34], 0xe
call fcn.00475ea8
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1f34], 0xd
call fcn.00475ea8
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1f34], 0xc
call fcn.00475ea8
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1f34], 0xb
call fcn.00475ea8
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1f34], 0xa
call fcn.00475ea8
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1f34], 1
call fcn.00475ea8
lea ecx, [esp + 0x60]
mov byte [esp + 0x1f34], 0x25
call fcn.00406610
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1f34], 0x24
call fcn.00475ea8
lea ecx, [esp + 0x58]
mov byte [esp + 0x1f34], 0x23
call fcn.00475ea8
lea ecx, [esp + 0x54]
mov byte [esp + 0x1f34], 0x22
call fcn.00475ea8
lea ecx, [esp + 0x50]
mov byte [esp + 0x1f34], 0x21
call fcn.00475ea8
mov byte [esp + 0x1f34], 0x20
lea ecx, [esp + 0x4c]
call fcn.00475ea8
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f34], 0x1f
call fcn.00475ea8
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f34], 0x1e
call fcn.00475ea8
lea ecx, [esp + 0x40]
mov byte [esp + 0x1f34], 0x1d
call fcn.00475ea8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1f34], 0x1c
call fcn.00475ea8
lea ecx, [esp + 0x38]
mov byte [esp + 0x1f34], 0x1b
call fcn.00475ea8
lea ecx, [esp + 0x34]
mov byte [esp + 0x1f34], 0x1a
call fcn.00475ea8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f34], 0x19
call fcn.00475ea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1f34], 0x18
call fcn.00475ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f34], 0x17
call fcn.00475ea8
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f34], 0x16
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f34], 0x15
call fcn.00475ea8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1f34], 0x14
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f34], 0
call fcn.00475ea8
lea ecx, [esp + 0xa1c]
mov dword [esp + 0x1f34], 0xffffffff
call fcn.0040daa0
mov ecx, dword [esp + 0x1f2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1f28
ret