Function at 0x4af386
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov ebx, eax
push edi
xor esi, esi
mov edi, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], esi
call fcn.004a985b
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, esi
jne 0x4af3b0
xor eax, eax
jmp 0x4af73d
mov eax, ebx
call fcn.0049d9de
mov edi, dword [ebp + 8]
test byte [edi + 2], 0x20
jne 0x4af3eb
cmp dword [ebx + 0x1ac], esi
jne 0x4af3eb
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
push esi
push 0x1a
pop eax
call fcn.004a331a
mov ecx, dword [ebp - 8]
push esi
push 1
push 7
pop eax
call fcn.004a332b
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp byte [ebx + 0x1e8], 2
jne 0x4af444
cmp byte [edi], 0x48
mov ecx, str.LIST
je 0x4af403
mov ecx, str.SCALAR
cmp dword [ebp - 0x10], 0
mov eax, 0x511450
jne 0x4af413
mov eax, str.CORRELATED
push dword [ebx + 0x230]
mov esi, dword [ebx]
push ecx
push eax
push str.EXECUTE__s_s_SUBQUERY__d
call fcn.004a0ea2
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [ebx + 0x22c]
mov eax, 0x8a
push dword [ebp - 8]
call fcn.004a7b0b
add esp, 0x28
cmp byte [edi], 0x48
je 0x4af4d1
mov esi, dword [edi + 0x10]
inc dword [ebx + 0x48]
push dword [ebx + 0x48]
xor edx, edx
push edx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], esi
call fcn.0049e85e
cmp byte [edi], 0x74
pop ecx
pop ecx
push dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
push edx
jne 0x4af47a
mov byte [ebp - 0x3c], 6
push 0xa
jmp 0x4af480
mov byte [ebp - 0x3c], 3
push 7
pop eax
call fcn.004a332b
pop ecx
pop ecx
push dword [esi + 0x28]
push dword [ebx]
call fcn.004a4396
push 0
push 0x81
mov eax, 0x4fe878
xor edi, edi
mov esi, ebx
call fcn.004a7fa5
mov ecx, dword [ebp - 0x24]
and dword [ecx + 0x30], edi
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x3c]
push eax
push ecx
push ebx
call fcn.004cc1bd
add esp, 0x1c
test eax, eax
jne 0x4af3a9
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
jmp 0x4af720
cmp dword [ebp + 0xc], 0
mov esi, dword [edi + 8]
je 0x4af4ec
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push 0
push 0xa
pop eax
call fcn.004a332b
pop ecx
pop ecx
mov eax, esi
call fcn.004a40b0
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], al
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x18], eax
inc dword [ebx + 0x44]
xor eax, eax
xor esi, esi
cmp dword [ebp + 0x10], esi
sete al
push eax
push dword [edi + 0x18]
push 0x29
pop eax
call fcn.004a332b
pop ecx
pop ecx
push 0x10
mov dword [ebp - 0x2c], eax
pop edx
cmp dword [ebp + 0xc], esi
jne 0x4af52d
mov ecx, dword [ebp - 8]
call fcn.0049cac8
push edx
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004dbcc0
mov cx, word [edi + 2]
xor eax, eax
inc eax
mov word [ebp - 0x36], ax
mov eax, 0x800
mov edx, eax
and cx, dx
add esp, 0xc
cmp cx, ax
jne 0x4af5b2
push dword [edi + 0x18]
lea eax, [ebp - 0x4c]
push 7
call fcn.0049e85e
mov al, byte [ebp - 1]
mov byte [ebp - 0x4b], al
mov eax, dword [edi + 0x10]
mov dword [eax + 0x30], esi
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 0x10]
push ebx
call fcn.004cc1bd
add esp, 0x14
test eax, eax
jne 0x4af3a9
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
cmp eax, esi
je 0x4af706
cmp dword [eax], esi
jle 0x4af706
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov eax, dword [edi + 8]
mov ecx, ebx
call fcn.004af2f9
mov dword [ebp - 0x30], eax
jmp 0x4af706
mov esi, dword [edi + 0x10]
test esi, esi
je 0x4af706
cmp byte [ebp - 1], 0
jne 0x4af5c7
mov byte [ebp - 1], 0x62
mov edi, dword [edi + 8]
call fcn.004af26d
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.0049daa9
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0049daa9
mov edi, dword [ebp - 8]
push eax
push 0
mov dword [ebp - 0xc], eax
push 0xa
pop eax
mov ecx, edi
call fcn.004a332b
mov eax, dword [esi]
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
test eax, eax
jle 0x4af6f4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x4af636
push eax
call fcn.004a4644
pop ecx
test eax, eax
jne 0x4af636
push 2
lea ecx, [esi - 1]
mov eax, edi
call fcn.004a3533
and dword [ebp - 0x10], 0
pop ecx
cmp dword [ebp + 0x10], 0
je 0x4af669
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.0049d7a3
pop ecx
pop ecx
test eax, eax
je 0x4af669
push dword [ebp - 0x28]
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
mov ecx, edi
push dword [eax + 0x18]
push 0x38
pop eax
call fcn.004a3296
add esp, 0xc
jmp 0x4af6e3
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push ebx
call fcn.004c1de9
add esp, 0xc
cmp dword [ebp + 0x10], 0
mov esi, eax
je 0x4af6ae
mov eax, edi
call fcn.0049ca71
inc eax
inc eax
push eax
push esi
push 0x15
pop eax
mov ecx, edi
call fcn.004a332b
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0xc]
mov ecx, edi
push dword [eax + 0x18]
push 0x37
pop eax
call fcn.004a3296
add esp, 0x14
jmp 0x4af6e3
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0xc]
push 1
push esi
push edi
push 0x1e
pop eax
call fcn.004a7b0b
xor ecx, ecx
inc ecx
mov eax, ebx
call fcn.0049da42
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
mov ecx, edi
push 0x46
pop eax
call fcn.004a332b
add esp, 0x20
dec dword [ebp - 0x18]
add dword [ebp - 0x14], 0x14
cmp dword [ebp - 0x18], 0
jg 0x4af60b
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0049dac4
mov edx, dword [ebp - 0xc]
call fcn.0049dac4
cmp dword [ebp + 0x10], 0
jne 0x4af720
push 0xfffffffffffffffa
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
call fcn.004a3574
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4af730
mov ecx, dword [ebp - 8]
dec eax
call fcn.0049cada
xor ecx, ecx
inc ecx
mov eax, ebx
call fcn.0049d9e2
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret