Function at 0x45ed53
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov eax, dword [esi + 0x1c]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
push eax
push eax
push 0x21
pop edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
call fcn.0044e34f
add esp, 0xc
test eax, eax
jne 0x45f002
mov ecx, edi
call fcn.00439f5e
mov ecx, 0x140
mov dword [ebp - 0x14], eax
mov word [esi + 6], cx
mov edx, esi
push eax
mov ecx, ebx
call fcn.0045eb4e
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x10]
pop ecx
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
cmp dword [edx], eax
jle 0x45ee03
lea ecx, [edx + 0x30]
test byte [ecx], 0x20
jne 0x45edf9
inc eax
add ecx, 0x50
cmp eax, dword [edx]
jl 0x45edea
jmp 0x45ee03
imul eax, eax, 0x50
mov eax, dword [eax + edx + 0x38]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + 1]
mov dword [ebx + 0x28], eax
cmp byte [esi + 4], 0x73
jne 0x45ee30
cmp dword [ebp - 8], 0
push 6
pop edx
mov dword [ebp - 0x24], 8
cmovne edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
inc eax
mov dword [ebx + 0x28], eax
jmp 0x45ee3d
cmp dword [ebp - 8], 0
push 5
pop edx
push 7
pop eax
cmovne edx, eax
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0045cf3f
add esp, 4
mov ecx, edi
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push 0x6f
pop edx
call fcn.00439d0e
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x45ee9d
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0045ec96
pop ecx
push 0xfffffffffffffff7
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
push 0
mov eax, dword [eax]
add eax, 2
push eax
push dword [ebp - 0xc]
push 0x6c
pop edx
call fcn.00439e58
mov eax, dword [ebp - 8]
add esp, 0x14
mov dword [ebp - 0x38], eax
jmp 0x45eeaf
push dword [ebp - 0x1c]
mov ecx, edi
push dword [ebp - 0xc]
push 0x6c
pop edx
call fcn.00439d92
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45eecc
push 0
push eax
push 0x6c
pop edx
mov ecx, edi
call fcn.00439d92
pop ecx
mov dword [esi + 0x14], eax
or dword [esi + 8], 0x20
pop ecx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
and dword [esi + 0x2c], 0
mov edx, eax
push ecx
mov ecx, ebx
and dword [eax + 0x34], 0
call fcn.0046197b
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x34], esi
test eax, eax
jne 0x45efe6
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0xc]
push 0x25
pop edx
call fcn.00439d92
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x20], eax
push 0x7c
pop edx
call fcn.00439d7e
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x24]
test eax, eax
je 0x45ef36
mov eax, dword [eax]
inc eax
push eax
push dword [ebp - 0xc]
push 0x60
pop edx
call fcn.00439d0e
add esp, 0xc
jmp 0x45ef43
push dword [ebp - 0xc]
push 0x7a
pop edx
call fcn.00439d92
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, edi
push 0x76
pop edx
call fcn.00439d7e
pop ecx
mov ecx, edi
call fcn.00439f5e
mov edx, dword [ebp - 0x28]
mov ecx, edi
push eax
mov dword [ebp - 0x24], eax
call fcn.0045d7eb
pop ecx
push dword [ebp - 0x14]
mov edx, esi
mov ecx, ebx
push dword [ebp - 0x24]
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x10]
push dword [esi]
call fcn.0045d876
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
test eax, eax
je 0x45ef9c
push dword [ebp - 0x14]
mov ecx, edi
push eax
push 0x30
pop edx
call fcn.00439d92
pop ecx
pop ecx
mov edx, dword [ebp - 0x24]
mov ecx, edi
call fcn.00439fa0
test byte [esi + 8], 8
je 0x45efba
push str.recursive_aggregate_queries_not_supported
push ebx
call fcn.00425127
pop ecx
jmp 0x45efd1
and dword [esi + 0x30], 0
lea eax, [ebp - 0x4c]
push eax
mov edx, esi
mov ecx, ebx
call fcn.0046197b
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x30], eax
mov edx, dword [ebp - 0x20]
pop ecx
mov ecx, edi
call fcn.00439da7
mov edx, dword [ebp - 0x14]
mov ecx, edi
call fcn.00439fa0
mov edx, dword [esi + 0x2c]
mov ecx, dword [ebx]
call fcn.00448b14
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x3c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret