Function at 0x446150
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a7d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ecx], eax
push ebx
mov ecx, dword [eax + 0x18]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push str.cq_fact
lea ecx, [ebp - 0x11c]
push str.SELECT__FROM__s_WHERE_owner_id_u
push ecx
call fcn.00449cf1
mov ecx, dword [ebp + 0xc]
add esp, 0x10
xor edi, edi
lea eax, [ebp - 0x11c]
mov edx, dword [ecx]
push edi
push eax
call dword [edx]
mov ebx, eax
mov dword [ebp + 8], edi
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x74]
test eax, eax
jbe 0x44637f
push esi
mov eax, dword [ebx]
push 5
mov ecx, ebx
call dword [eax + 0x58]
mov edx, dword [ebx]
push 4
mov ecx, ebx
mov esi, eax
call dword [edx + 0x58]
add esi, eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
jge 0x446361
mov eax, dword [ebx]
push 2
mov ecx, ebx
call dword [eax + 0x5c]
mov esi, eax
push 8
lea ecx, [ebp - 0x18]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.0043edc0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.004058f0
cmp esi, edi
mov dword [ebp - 4], 1
jne 0x44623b
push 0x24
push str...common_basetype.h
push 0x48dd58
push str.IF_OK
push 0x48c174
call fcn.00401000
add esp, 0x14
jmp 0x4462bb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [ebp - 0x18]
dec ecx
mov edx, ecx
mov ecx, dword [ebp - 0x14]
add edx, esi
sub ecx, edi
mov eax, edx
sub eax, esi
cmp eax, ecx
ja 0x446296
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edi, ecx
lea esi, [eax + edx]
cmp esi, ecx
je 0x4462bb
mov eax, 1
push eax
push ecx
push esi
call fcn.0044b210
mov eax, dword [ebp - 0x14]
sub esi, edi
add esp, 0xc
add esi, eax
mov dword [ebp - 0x14], esi
jmp 0x4462bb
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub ecx, esi
add ecx, edx
push ecx
lea ecx, [ebp - 0x18]
call fcn.004061a0
mov edx, dword [ebx]
push 5
mov ecx, ebx
mov dword [ebp - 4], 2
call dword [edx + 0x58]
push eax
mov eax, dword [ebx]
push 4
mov ecx, ebx
call dword [eax + 0x58]
mov edx, dword [ebx]
push eax
push 3
mov ecx, ebx
call dword [edx + 0x58]
mov edx, dword [ebx]
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push 0
call dword [edx + 0x58]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.004465b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x446348
test eax, eax
je 0x446348
cmp eax, 0x80
jbe 0x44631f
push ecx
call fcn.0044a7c7
add esp, 4
jmp 0x446348
add eax, 7
mov edi, ecx
shr eax, 3
mov ecx, 0x499ad0
lea esi, [eax*4 + 0x499ad0]
call fcn.00406cb0
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], edi
mov ecx, 0x499ad0
call fcn.0040d810
mov edx, dword [ebx]
push 2
mov ecx, ebx
call dword [edx + 0x5c]
push eax
push str.Load_All_Facts:__s
call fcn.00417260
add esp, 8
xor edi, edi
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
inc esi
mov ecx, ebx
mov dword [ebp + 8], esi
call dword [eax + 0x78]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x74]
cmp esi, eax
jb 0x4461c0
pop esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc