Function at 0x404904
Capabilities:
Create process on windows
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb64
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__CWinNT4::dwRemove___:_nPartial_d__szInfHWIDBuffer_s
call fcn.004013fd
lea eax, [ebp - 0x7e4]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push eax
call fcn.0040bb30
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7e4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x404987
lea eax, [ebp - 0x164]
push 0x104
push eax
xor ebx, ebx
push 0xc360
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea eax, [ebp - 0x164]
push 0x425048
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040be8d
lea eax, [ebp - 0x60]
xor ebx, ebx
push 0x40
push eax
mov dword [ebp - 0xc], ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404df0
push 1
lea eax, [ebp - 0x7e4]
pop edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push eax
mov dword [ebp - 0x10], edi
call fcn.0040bb30
mov esi, 0x42503c
lea eax, [ebp - 0x7e4]
push esi
push eax
call fcn.0040bb40
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7e4]
push eax
call fcn.0040bb40
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x7e4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404d55
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xb64]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x425d90
mov dword [ebp - 8], 0x80
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x404d44
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ServiceName
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x404d44
lea eax, [ebp - 0xae4]
push str.SYSTEMCurrentControlSetServices
push eax
call fcn.0040bb30
lea eax, [ebp - 0xae4]
push esi
push eax
call fcn.0040bb40
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0xae4]
push eax
call fcn.0040bb40
lea eax, [ebp - 0xae4]
push esi
push eax
call fcn.0040bb40
lea eax, [ebp - 0xae4]
push str.Parameters
push eax
call fcn.0040bb40
add esp, 0x28
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404d88
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.AdapterCFID
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x404d44
push dword [ebp - 4]
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x60]
push eax
push str.CWinNT4::dwRemove__:_Card:__s__Service:__s__AdapterCFID_08X
call fcn.004013fd
add esp, 0x10
cmp dword [ebp + 8], ebx
je 0x404b9c
mov eax, dword [ebp - 4]
mov ecx, eax
and ecx, 0xffff
cmp ecx, 0x1106
jne 0x404d34
shr eax, 0x10
push eax
push str.DEV_
lea eax, [ebp - 0x8e4]
push str._s_04X
push eax
call fcn.0040becd
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov eax, esi
cmp byte [eax], bl
je 0x404d34
lea eax, [ebp - 0x8e4]
push esi
push eax
push str.CWinNT4::dwRemove__:_Compare:__s___s
call fcn.004013fd
lea eax, [ebp - 0x8e4]
push esi
push eax
call fcn.0040c410
add esp, 0x14
test eax, eax
je 0x404b8f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
jne 0x404b53
jmp 0x404d34
push str.CWinNT4::dwRemove__:_Found_
call fcn.004013fd
pop ecx
jmp 0x404bb5
and word [ebp - 2], 0
xor eax, eax
cmp dword [ebp - 4], 0x1106
sete al
cmp eax, ebx
je 0x404d34
mov al, byte [0x42868c]
mov ecx, 0xff
mov byte [ebp - 0x5e4], al
xor eax, eax
lea edi, [ebp - 0x5e3]
push 0x42a664
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5e4]
push eax
call fcn.0040bb40
lea eax, [ebp - 0x5e4]
push str._setup.exe__f__i
push eax
call fcn.0040bb40
mov esi, dword [ebp - 0x20]
add esp, 0x10
lea eax, [esi + 8]
push eax
push 0x42a358
lea eax, [ebp - 0x5e4]
push str.__s_s_
push eax
call fcn.0040c0a0
pop ecx
lea eax, [ebp + eax - 0x5e4]
push eax
call fcn.0040becd
lea eax, [ebp - 0x5e4]
push str._T_NTN_InstallMode__deinstall
push eax
call fcn.0040bb40
lea eax, [ebp - 0x5e4]
push str._T_NTN_Origination__install
push eax
call fcn.0040bb40
add esp, 0x20
lea eax, [esi + 0x210]
push eax
lea eax, [ebp - 0x5e4]
push str._T_NTN_InfOption___s
push eax
call fcn.0040c0a0
pop ecx
lea eax, [ebp + eax - 0x5e4]
push eax
call fcn.0040becd
add esp, 0xc
mov edi, 0x42a254
lea eax, [ebp - 0x5e4]
push edi
push str._T_NTN_SRCPATH____s_
push eax
call fcn.0040c0a0
pop ecx
lea eax, [ebp + eax - 0x5e4]
push eax
call fcn.0040becd
add esp, 0xc
lea eax, [ebp - 0x5e4]
push 0x42a560
push edi
push str._T_NTN_Infname____s_s_
push eax
call fcn.0040c0a0
pop ecx
lea eax, [ebp + eax - 0x5e4]
push eax
call fcn.0040becd
lea eax, [ebp - 0x5e4]
push str._T_STF_GUI_UNATTENDED__YES
push eax
call fcn.0040bb40
lea eax, [ebp - 0x5e4]
push str._T_STF_UNATTENDED__YES
push eax
call fcn.0040bb40
add esp, 0x20
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x5e4]
push str._T_NTN_RegBase____s_
push eax
call fcn.0040c0a0
pop ecx
lea eax, [ebp + eax - 0x5e4]
push eax
call fcn.0040becd
add esp, 0xc
lea eax, [ebp - 0x5e4]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
mov dword [esi + 4], eax
jbe 0x404dbc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0xc]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x18]
call esi
inc dword [ebp - 0xc]
lea eax, [ebp - 0x60]
push 0x40
push eax
push dword [ebp - 0xc]
jmp 0x404993
lea eax, [ebp - 0x164]
push 0x104
push eax
push 0xc361
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea eax, [ebp - 0x164]
push 0x425048
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040be8d
lea eax, [ebp - 0x164]
push 0x104
push eax
push 0xc362
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea eax, [ebp - 0x164]
push 0x425048
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040be8d
lea eax, [ebp - 0x164]
push 0x104
push eax
push 0xc35f
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea eax, [ebp - 0x164]
push 0x425048
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040be8d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.__CWinNT4::dwRemove__
call fcn.004013fd
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8