Function at 0x1001920
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
or dword [ebp + 0x68], 0xffffffff
push ebx
push esi
lea eax, [ebp - 0x14]
mov dword [ebp + 0x4c], eax
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x7c], esi
push edi
sete al
push 4
pop ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x74]
call fcn.010013d8
cmp dword [ebp + 0x5c], 1
mov dword [ebp + 0x60], eax
je 0x1001986
push dword [ebp + 0x74]
push dword [0x1004964]
push 0x2711
push 2
call fcn.01002102
add esp, 0x10
jmp 0x1001a92
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call fcn.01001589
cmp eax, esi
mov dword [ebp + 0x5c], eax
je 0x10019a9
push dword [ebp + 0x78]
push dword [0x1004964]
push 0x2712
jmp 0x1001977
cmp dword [ebp + 0x54], esi
jne 0x10019df
lea eax, [ebp + 0x5c]
push eax
push 2
call fcn.01003255
mov edi, eax
cmp edi, esi
je 0x1001cd1
push dword [ebp + 0x7c]
call fcn.010012bd
push edi
mov dword [ebp + 0x68], eax
call fcn.010022ab
cmp dword [ebp + 0x68], 0xffffffff
jne 0x10019df
push dword [ebp + 0x7c]
jmp 0x100196c
mov esi, 0xc8
push esi
call sub.snmpapi.dll_SnmpUtilMemAlloc
test eax, eax
je 0x1001a7d
push 0xf
pop edi
push dword [ebp + 0x68]
lea edx, [ebp + 0x60]
push 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
call fcn.01001252
mov eax, dword [ebp + 0x68]
push esi
mov byte [ebp - 0xc], 2
mov dword [ebp - 8], eax
call sub.snmpapi.dll_SnmpUtilMemAlloc
test eax, eax
je 0x1001a7d
push dword [ebp + 0x68]
lea edx, [ebp + 0x60]
push 2
mov dword [ebp + 8], eax
mov dword [ebp + 4], edi
call fcn.01001252
and dword [ebp + 0x18], 0
lea eax, [ebp - 0x1c]
push esi
mov byte [ebp + 0xc], bl
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], 6
call sub.snmpapi.dll_SnmpUtilMemAlloc
test eax, eax
je 0x1001a7d
push dword [ebp + 0x68]
lea edx, [ebp + 0x60]
push 3
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], edi
call fcn.01001252
and dword [ebp + 0x30], 0
lea eax, [ebp + 0x60]
push esi
mov byte [ebp + 0x24], 0x40
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], ebx
call sub.snmpapi.dll_SnmpUtilMemAlloc
xor esi, esi
cmp eax, esi
jne 0x1001a9a
push dword [0x1004964]
push 0x2714
push 2
call fcn.01002102
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
push dword [ebp + 0x68]
lea edx, [ebp + 0x60]
push ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x34], edi
call fcn.01001252
cmp dword [ebp + 0x54], esi
mov byte [ebp + 0x3c], 2
mov dword [ebp + 0x40], ebx
jne 0x1001ad4
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x4c]
push eax
push 0xa3
call dword [0x1004978]
jmp 0x1001caa
lea eax, [ebp + 0x5c]
push eax
push ebx
mov dword [ebp + 0x74], esi
call fcn.01003255
cmp eax, esi
mov dword [ebp + 0x7c], eax
mov ebx, 0xa3
je 0x1001b91
mov esi, dword [eax]
cmp esi, eax
je 0x1001b91
mov al, byte [ebp + 0x60]
or edi, 0xffffffff
and al, 0xc0
je 0x1001b2f
cmp al, 0x40
je 0x1001b2f
cmp al, 0x80
jne 0x1001b14
mov edi, pe_overlay
jmp 0x1001b34
cmp al, 0xc0
jne 0x1001b34
mov al, byte [ebp + 0x60]
and al, 0x30
neg al
sbb eax, eax
and eax, 0xff000000
add eax, 0xffffff
mov edi, eax
jmp 0x1001b34
mov edi, 0xff
mov eax, dword [esi + 0x18]
mov ecx, edi
and ecx, dword [ebp + 0x60]
and eax, edi
cmp eax, ecx
jne 0x1001b82
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x28], ecx
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x4c]
push eax
push ebx
call dword [0x1004978]
cmp dword [ebp + 0x64], 0
je 0x1001b8b
mov esi, dword [esi]
cmp esi, dword [ebp + 0x7c]
jne 0x1001b34
jmp 0x1001b91
mov eax, dword [ebp - 8]
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], 0xffffffff
jne 0x1001c77
lea eax, [ebp + 0x5c]
push eax
push 2
call fcn.01003255
mov edi, eax
test edi, edi
mov dword [ebp + 0x74], edi
je 0x1001c77
mov esi, dword [edi]
cmp esi, edi
je 0x1001c77
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001c12
mov eax, dword [esi + 0x10]
mov edx, eax
and edx, dword [ebp + 0x60]
and eax, ecx
cmp eax, edx
jne 0x1001c12
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x28], ecx
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x4c]
push eax
push ebx
call dword [0x1004978]
cmp dword [ebp + 0x64], 0
je 0x1001c1a
mov esi, dword [esi]
cmp esi, edi
jne 0x1001bbd
jmp 0x1001c25
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp + 0x68], eax
jne 0x1001c77
mov esi, dword [edi]
jmp 0x1001c6b
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x28], ecx
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x4c]
push eax
push ebx
call dword [0x1004978]
cmp dword [ebp + 0x64], 0
je 0x1001c71
mov esi, dword [esi]
cmp esi, edi
jne 0x1001c29
jmp 0x1001c77
mov eax, dword [ebp - 8]
mov dword [ebp + 0x68], eax
xor esi, esi
cmp dword [ebp + 0x7c], esi
je 0x1001c86
push dword [ebp + 0x7c]
call fcn.010022ab
cmp dword [ebp + 0x74], esi
je 0x1001c93
push dword [ebp + 0x74]
call fcn.010022ab
cmp dword [ebp + 0x68], 0xffffffff
jne 0x1001caa
cmp dword [ebp + 0x64], esi
jne 0x1001caa
cmp dword [ebp + 0x5c], esi
jne 0x1001caa
mov dword [ebp + 0x64], 5
push dword [ebp - 0x10]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp + 8]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp + 0x20]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp + 0x38]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [ebp + 0x64]
cmp eax, esi
jne 0x1001cd4
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc