Function at 0x468030
Capabilities:
Rebuild import table
Resolve dns
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], esi
call fcn.004698c0
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], 0x7cf1a4
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebp
call fcn.00469910
mov al, byte [esi + 0x212a]
test al, al
je 0x4680a6
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7cf18c
cmp eax, ebp
je 0x468099
mov cl, byte [esp + 0x1d]
test cl, cl
je 0x468099
push eax
call fcn.00672c80
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xf4
ret
lea eax, [esp + 0x84]
push 0x80
push eax
mov ecx, 0x82c5a8
call fcn.0046ce00
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x468500
lea ecx, [esp + 0x88]
push 0x3b
push ecx
call fcn.0078c230
add esp, 8
cmp eax, ebp
je 0x46851a
lea edx, [esp + 0x34]
mov byte [eax], 0
push edx
inc eax
push 0x7f745c
push eax
call fcn.0078c2ec
add esp, 0xc
lea eax, [esp + 0x88]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebp
je 0x468500
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_ntohl
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.inetmib1.dll
mov dword [esp + 0x40], eax
call esi
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x30], edi
je 0x468500
push str.snmpapi.dll
call esi
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x2c], ebx
jne 0x468163
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x468500
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SnmpExtensionInit
push edi
call esi
push str.SnmpExtensionQuery
push edi
mov dword [0x82a200], eax
call esi
push str.SnmpUtilMemAlloc
push ebx
mov dword [0x82a1f8], eax
call esi
push str.SnmpUtilMemFree
push ebx
mov dword [0x82a1fc], eax
call esi
mov ecx, dword [0x82a200]
mov dword [0x82c500], eax
cmp ecx, ebp
je 0x4684f4
cmp dword [0x82a1f8], ebp
je 0x4684f4
mov ecx, dword [0x82a1fc]
cmp ecx, ebp
je 0x4684f4
cmp eax, ebp
je 0x4684f4
push 0x2008
call ecx
push 0x98
mov ebx, eax
call dword [0x82a1fc]
mov ebp, eax
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x82a200]
test eax, eax
jne 0x46822f
push ebx
call dword [0x82c500]
push ebp
call dword [0x82c500]
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7cf18c
test eax, eax
jmp 0x46850e
mov eax, 1
mov ecx, 6
push 0x428
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0xd
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call dword [0x82a1fc]
mov ecx, 0xa
lea esi, [esp + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 4], eax
mov eax, 1
mov dword [ebp], 0xa
mov dword [ebx], ebp
mov dword [ebx + 4], eax
mov dword [esp + 0x28], eax
xor esi, esi
lea eax, [esp + 0x78]
lea ecx, [esp + 0x74]
push eax
push ecx
push ebx
push 0xa1
call dword [0x82a1f8]
test eax, eax
je 0x46839a
cmp dword [ebp], 0xa
jb 0x4683bf
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
cmp ecx, eax
je 0x4682db
xor esi, esi
mov dword [esp + 0x28], eax
dec eax
cmp eax, 4
ja case.default.0x4682e1
jmp dword [eax*4 + 0x468548]
push 0x14
call fcn.00672b70
mov edi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
jl 0x46832f
mov cl, byte [esp + 0x1d]
test cl, cl
jne 0x46830f
test eax, eax
jne case.default.0x4682e1
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle case.default.0x4682e1
mov edx, dword [esp + 0x10]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0x18]
call dword [edx + 8]
test al, al
je case.default.0x4682e1
mov ecx, dword [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
jmp case.default.0x4682e1
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + esi*4]
mov edx, dword [edx]
inc esi
mov dword [ecx + 4], edx
jmp case.default.0x4682e1
mov eax, dword [esp + 0x14]
mov dx, word [ebp + 0xc]
mov ecx, dword [eax + esi*4]
inc esi
mov word [ecx + 8], dx
jmp case.default.0x4682e1
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + esi*4]
mov eax, dword [eax]
inc esi
mov dword [edx + 0xc], eax
jmp case.default.0x4682e1
mov ecx, dword [esp + 0x14]
mov ax, word [ebp + 0xc]
mov edx, dword [ecx + esi*4]
inc esi
mov word [edx + 0x10], ax
jmp case.default.0x4682e1
push ebx
call dword [0x82c500]
push ebp
call dword [0x82c500]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
jmp 0x46821a
push ebx
call dword [0x82c500]
push ebp
call dword [0x82c500]
mov eax, dword [esp + 0x20]
xor bl, bl
test eax, eax
je 0x468485
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0xc]
push ecx
call sub.WSOCK32.dll_ntohl
test bl, bl
mov dword [esp + 0x28], eax
jne 0x46842d
lea eax, [esp + 0x28]
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [edx]
cmp ecx, eax
jne 0x46842d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x468414
xor edx, edx
mov dx, word [esi + 0x10]
cmp eax, edx
jne 0x46842d
cmp dword [esi], 5
jne 0x46842d
mov ax, word [esi + 8]
add esi, 4
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.00469960
mov bl, 1
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call fcn.00672c80
mov ecx, dword [esp + 0x24]
add esp, 4
test ecx, ecx
jle 0x468465
dec ecx
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
jle 0x468465
mov ecx, dword [esp + 0x14]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jl 0x46844f
test ecx, ecx
jne 0x4683db
test bl, bl
je 0x468485
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0x2124]
call fcn.00469b30
jmp 0x468489
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call esi
mov eax, dword [edi + 0x22d0]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x22d8], 6
mov ecx, dword [edi + 0x22d0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7cf18c
test eax, eax
je 0x4684e7
mov cl, byte [esp + 0x1d]
test cl, cl
je 0x4684e7
push eax
call fcn.00672c80
add esp, 4
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0xf4
ret
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7cf18c
cmp eax, ebp
je 0x46853b
mov cl, byte [esp + 0x1d]
test cl, cl
je 0x46853b
jmp 0x468532
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x7cf18c
cmp eax, ebp
je 0x46853b
mov cl, byte [esp + 0x1d]
test cl, cl
je 0x46853b
push eax
call fcn.00672c80
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf4
ret