Function at 0x40a520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x63c
mov eax, dword [0x492e64]
xor eax, esp
mov dword [esp + 0x638], eax
mov eax, dword [esp + 0x640]
mov ecx, dword [esp + 0x650]
mov edx, dword [esp + 0x654]
push ebx
mov ebx, dword [esp + 0x650]
push esi
mov esi, dword [esp + 0x64c]
push edi
mov edi, dword [esp + 0x654]
push 0
push edi
push esi
mov dword [esp + 0x34], eax
push eax
xor eax, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
call fcn.00406430
add esp, 0x10
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40a5a7
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.00448dba
add esp, 0x63c
ret
push ebp
mov ebp, eax
mov eax, dword [ebx]
sub ebp, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0x5c0
call fcn.004051c0
test eax, eax
je 0x40a64e
push 0xa7c
push str....._snmplib_snmp_api.c
push 0x473320
push 0x473318
call fcn.00405190
push 0xa7c
push str....._snmplib_snmp_api.c
push 0x473320
push 0x473318
call fcn.00405040
call fcn.00404e30
push eax
push 0x4747ec
push str.dumph_send
call fcn.00405190
call fcn.00404e30
push eax
push 0x4747ec
push str.dumph_send
call fcn.00405040
push str.ScopedPdu
push str.dumph_send
call fcn.00405040
add esp, 0x40
push 0x475254
push str.dumph_send
call fcn.00405040
push 2
call fcn.00404e40
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x34]
lea eax, [esp + 0x8c]
mov ebx, esi
call fcn.004070c0
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x40a796
call fcn.004051c0
test eax, eax
je 0x40a71b
push 0xa85
push str....._snmplib_snmp_api.c
push 0x473320
push 0x473318
call fcn.00405190
push 0xa85
push str....._snmplib_snmp_api.c
push 0x473320
push 0x473318
call fcn.00405040
call fcn.00404e30
push eax
push 0x4747ec
push str.dumph_send
call fcn.00405190
call fcn.00404e30
push eax
push 0x4747ec
push str.dumph_send
call fcn.00405040
mov edi, dword [esp + 0x50]
add esp, 0x38
test edi, edi
je 0x40a6ed
movzx eax, byte [edi]
jmp 0x40a6ef
xor eax, eax
push eax
call fcn.004056a0
push eax
push str.dumph_send
call fcn.00405040
push 0x475254
push str.dumph_send
call fcn.00405040
push 2
call fcn.00404e40
add esp, 0x18
jmp 0x40a71f
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40a73c
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ebx
push edi
push edx
call fcn.0044e790
add esp, 0xc
add dword [esp + 0x10], ebx
jmp 0x40a757
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call fcn.00407580
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
je 0x40a796
call fcn.004051c0
test eax, eax
je 0x40a76a
push 0xfffffffffffffffc
call fcn.00404e40
add esp, 4
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push eax
push 0x30
push edx
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x24], 0x5c0
call fcn.00422f20
add esp, 0x10
test eax, eax
jne 0x40a79e
or eax, 0xffffffff
jmp 0x40a943
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
sub edi, ecx
mov dword [esp + 0x10], 0
mov dword [ebx], 0x5c0
call fcn.004051c0
test eax, eax
je 0x40a851
push 0xaa2
push str....._snmplib_snmp_api.c
push 0x473320
push 0x473318
call fcn.00405190
push 0xaa2
push str....._snmplib_snmp_api.c
push 0x473320
push 0x473318
call fcn.00405040
call fcn.00404e30
push eax
push 0x4747ec
push str.dumph_send
call fcn.00405190
call fcn.00404e30
push eax
push 0x4747ec
push str.dumph_send
call fcn.00405040
push str.SM_msgSecurityParameters
push str.dumph_send
call fcn.00405040
add esp, 0x40
push 0x475254
push str.dumph_send
call fcn.00405040
push 2
call fcn.00404e40
add esp, 0xc
mov edx, dword [esi + 0x28]
push edx
call fcn.00418a90
add esp, 4
test eax, eax
je 0x40a90d
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x40a918
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0x88]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x8c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0x5c0
mov dword [esp + 0x68], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], esi
call eax
add esp, 4
mov esi, eax
jmp 0x40a92e
mov edx, dword [esi + 0x28]
push edx
push str.no_such_security_service_available:__d_n
jmp 0x40a921
mov eax, dword [esi + 0x28]
push eax
push str.security_service__d_doesnt_support_forward_out_encoding._n
push 3
call fcn.004122a0
add esp, 0xc
or esi, 0xffffffff
call fcn.004051c0
test eax, eax
je 0x40a941
push 0xfffffffffffffffe
call fcn.00404e40
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x648]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00448dba
add esp, 0x63c
ret