Function at 0x41adbb
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x498b28]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
push ebx
xor ebx, ebx
cmp word [ebp + 0x1d0], bx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x58], ebx
jg 0x41adf2
xor eax, eax
jmp 0x41af7a
push edi
push 0x110
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00436a20
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x114
call dword [0x467324]
cmp dword [ebp - 0x44], 2
jne 0x41ae23
push str.setupapi.dll
jmp 0x41ae28
push str.cfgmgr32.dll
call dword [0x46712c]
mov edi, eax
cmp edi, ebx
push esi
je 0x41af76
mov esi, dword [0x467118]
push str.CM_Locate_DevNodeA
push edi
call esi
push 0x471d38
push edi
mov dword [ebp - 0x64], eax
call esi
push str.CM_Get_DevNode_Registry_PropertyA
push edi
mov dword [ebp - 0x5c], eax
call esi
push str.CM_Set_DevNode_Registry_PropertyA
push edi
mov dword [ebp - 0x78], eax
call esi
push 0x471ce0
push edi
call esi
push str.CM_Open_DevNode_Key
push edi
mov dword [ebp - 0x70], eax
call esi
push 0x471cbc
push edi
mov dword [ebp - 0x7c], eax
call esi
cmp dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], eax
je 0x41af76
cmp dword [ebp - 0x5c], ebx
je 0x41af76
cmp dword [ebp - 0x78], ebx
je 0x41af76
cmp dword [ebp - 0x70], ebx
je 0x41af76
cmp dword [ebp - 0x7c], ebx
je 0x41af76
cmp eax, ebx
je 0x41af76
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x64]
test eax, eax
jne 0x41af76
xor edi, edi
inc edi
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc0]
push eax
push ebx
push 0xd
push dword [ebp - 0x58]
mov dword [ebp - 0x80], 0x103
call dword [ebp - 0x78]
test eax, eax
jne 0x41af2b
lea eax, [ebp + 0xc0]
push 0x471cb8
push eax
call fcn.0043b820
cmp eax, ebx
pop ecx
pop ecx
je 0x41af2b
lea ecx, [ebp - 0x64]
push ecx
push str.COM_d
push eax
mov dword [ebp - 0x64], ebx
call fcn.0043c6e9
mov si, word [ebp + 0x1d0]
add esp, 0xc
cmp word [ebp - 0x64], si
je 0x41af90
push ebx
push dword [ebp - 0x58]
lea eax, [ebp - 0x60]
push eax
call dword [ebp - 0x70]
test eax, eax
je 0x41af62
push ebx
push dword [ebp - 0x58]
jmp 0x41af57
push ebx
push dword [ebp - 0x58]
lea eax, [ebp - 0x60]
push eax
call dword [ebp - 0x68]
test eax, eax
jne 0x41af6a
mov eax, dword [ebp - 0x60]
push ebx
mov dword [ebp - 0x58], eax
push eax
lea eax, [ebp - 0x60]
push eax
call dword [ebp - 0x5c]
test eax, eax
jne 0x41af40
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x58], eax
jmp 0x41af6d
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x6c], ebx
je 0x41aed2
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp + 0x1c4]
xor ecx, ebp
pop ebx
call fcn.004369c2
add ebp, 0x1c8
leave
ret
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0xf003f
push dword [ebp - 0x58]
call dword [ebp - 0x7c]
test eax, eax
jne 0x41af76
cmp dword [ebp + 0x1d4], ebx
mov dword [ebp - 0x68], edi
jne 0x41afd1
push 4
lea eax, [ebp - 0x68]
push eax
push 4
push ebx
push str.PrivatePort
push dword [ebp - 0x5c]
call dword [0x46703c]
test eax, eax
jne 0x41afdf
mov dword [ebp - 0x74], edi
jmp 0x41afdf
push str.PrivatePort
push dword [ebp - 0x5c]
call dword [0x46704c]
push dword [ebp - 0x5c]
call dword [0x467004]
cmp dword [ebp - 0x74], ebx
je 0x41af76
movsx eax, si
jmp 0x41af78