Function at 0x4299e5
Capabilities:
Check os version
Link many functions at runtime
Query service status

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0xd4
mov ecx, dword [eax + 0x170]
push ebx
push esi
mov dword [ebp - 0x1c], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x429de5
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x429dd5
push 4
push str.SNMP
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x429a66
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x429a4e
push edi
jmp 0x429dd8
cmp dword [ebp - 0x50], 4
push edi
jne 0x429dd8
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x8000
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.SNMPAPI.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x49387c], eax
cmp eax, esi
je 0x429dce
push str.MGMTAPI.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x493880], eax
cmp eax, esi
je 0x429dce
push str.SnmpUtilMemAlloc
mov eax, dword [0x49387c]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
push str.SnmpUtilMemReAlloc
mov dword [0x4a5a3c], eax
push dword [0x49387c]
call edi
push str.SnmpMgrStrToOid
mov dword [0x4a5a38], eax
mov eax, dword [0x493880]
push eax
call edi
push str.SnmpMgrOpen
mov dword [0x4a5a30], eax
mov eax, dword [0x493880]
push eax
call edi
push str.SnmpMgrRequest
mov dword [0x4a5a40], eax
mov eax, dword [0x493880]
push eax
call edi
push str.SnmpMgrClose
mov dword [0x4a5a54], eax
mov eax, dword [0x493880]
push eax
call edi
push str.SnmpUtilOidCpy
mov dword [0x4a5a2c], eax
mov eax, dword [0x49387c]
push eax
call edi
push str.SnmpUtilOidNCmp
mov dword [0x4a5a34], eax
mov eax, dword [0x49387c]
push eax
call edi
push str.SnmpUtilVarBindFree
mov dword [0x4a5a44], eax
mov eax, dword [0x49387c]
push eax
call edi
push str.SnmpUtilOidFree
mov dword [0x4a5a4c], eax
mov eax, dword [0x49387c]
push eax
call edi
push str.SnmpUtilVarBindListFree
mov dword [0x4a5a50], eax
mov eax, dword [0x49387c]
push eax
call edi
push 0x7f
mov dword [0x4a5a48], eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00421610
lea eax, [ebp - 0xd4]
push eax
call fcn.00449210
add esp, 4
inc eax
push eax
call dword [0x4a5a3c]
mov ebx, str.public
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xc]
call fcn.00449120
add esp, 8
push ebx
call fcn.00449210
add esp, 4
inc eax
push eax
call dword [0x4a5a3c]
mov edi, eax
push ebx
push edi
call fcn.00449120
add esp, 8
lea eax, [ebp - 0x38]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push eax
push str..1.3.6.1.2.1.2.2.1.6
call dword [0x4a5a30]
test eax, eax
je 0x429de5
push 0x18
inc dword [ebp - 4]
push dword [ebp - 8]
call dword [0x4a5a38]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x429de5
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
push 3
push 0x1770
push edi
mov dword [edx], eax
mov dword [edx + 4], ecx
mov edx, dword [ebp - 8]
push dword [ebp - 0xc]
mov byte [edx + 8], 5
call dword [0x4a5a40]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x429de5
lea ecx, [ebp - 0x24]
mov esi, 1
push dword [ebp - 8]
push ecx
call dword [0x4a5a34]
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push eax
push edx
push 0xa1
push dword [ebp - 0xc]
call dword [0x4a5a54]
test eax, eax
je 0x429da8
xor edi, edi
cmp dword [ebp - 0x10], 2
je 0x429da8
push dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 8]
call dword [0x4a5a44]
test eax, eax
jne 0x429da8
cmp dword [ebp - 0x10], edi
jg 0x429da8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
xor ebx, ebx
push 6
push dword [eax + 0xc]
push edx
call fcn.004492f0
add esp, 0xc
xor eax, eax
cmp byte [ebp + eax - 0x18], 0
je 0x429cb7
mov ebx, 1
inc eax
cmp eax, 6
jl 0x429cab
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 6
jne 0x429d52
test ebx, ebx
je 0x429d52
test esi, esi
je 0x429d0a
xor esi, esi
push 6
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ecx + 0x170]
add eax, 8
push eax
call fcn.004492f0
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x170]
mov word [edx + 2], 2
push 6
push eax
jmp 0x429d36
call fcn.00421be1
mov ecx, dword [ebp - 0x1c]
push 6
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov word [eax + 2], 2
push edx
mov dword [ecx + 0x38], eax
add eax, 8
push eax
call fcn.004492f0
add esp, 0xc
lea ecx, [ebp - 0x18]
push 6
push ecx
mov eax, dword [0x4936ac]
imul eax, eax, 6
add eax, 0x4a8180
push eax
call fcn.004492f0
add esp, 0xc
inc dword [0x4936ac]
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
push ecx
call dword [0x4a5a34]
push dword [ebp - 8]
call dword [0x4a5a4c]
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 8]
call dword [0x4a5a34]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x30]
push edx
mov byte [ecx + 8], 5
call dword [0x4a5a50]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push edx
push eax
push 0xa1
push dword [ebp - 0xc]
call dword [0x4a5a54]
test eax, eax
jne 0x429c68
lea eax, [ebp - 8]
push eax
call dword [0x4a5a48]
lea eax, [ebp - 0x24]
push eax
call dword [0x4a5a50]
push dword [ebp - 0xc]
call dword [0x4a5a2c]
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x429dea
mov eax, 1
jmp 0x429dea
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret