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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x8d3fc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x98], edx
mov eax, edx
push edi
cmp dword [edx + 0x78], ecx
mov edi, dword [ebp + 8]
cmovne eax, dword [edx + 0x78]
cmp byte [eax + 0xd3], 2
jne 0x4a7a26
movzx eax, byte [edi + 0x3c]
add esi, 8
mov edi, dword [edi + 0x50]
imul eax, eax, 0x48
mov ebx, dword [edi + 0x2c]
add eax, esi
mov esi, dword [edx + 8]
mov edx, dword [edx]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x78], edx
test ebx, 0x2000
jne 0x4a7a37
test byte [ebp + 0xc], 0x20
jne 0x4a7a37
mov esi, ebx
and esi, 0x30
jne 0x4a7833
test ebx, 0x400
jne 0x4a7826
cmp word [edi + 0x18], cx
ja 0x4a7833
test byte [ebp + 0xc], 3
jne 0x4a7833
mov edx, ecx
mov dword [ebp - 0x7c], ecx
jmp 0x4a7839
xor edx, edx
inc edx
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x90], eax
test edx, edx
mov eax, dword [ebp - 0x78]
mov ecx, str.SCAN
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, str.SEARCH
mov dword [ebp - 0x8c], 0x64
cmove eax, ecx
mov dword [ebp - 0x88], 0x3b9aca00
push eax
lea eax, [ebp - 0x94]
mov word [ebp - 0x80], 0x100
push str._s__S
push eax
call fcn.00452f10
add esp, 0x10
test ebx, 0x500
jne 0x4a793c
mov eax, dword [ebp - 0x74]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x78], ecx
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
je 0x4a78d1
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x4a78d1
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [ebp - 0x7c], eax
cmove esi, eax
test esi, esi
je 0x4a79d4
jmp 0x4a78ff
test ebx, 0x20000
je 0x4a78e0
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x4a78ff
test ebx, 0x4000
je 0x4a78ef
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x4a78ff
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
push 7
lea eax, [ebp - 0x94]
push str._USING
push eax
call fcn.00452a40
mov eax, dword [ebp - 0x78]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00452f10
add esp, 0xc
lea ecx, [ebp - 0x94]
mov edx, edi
call fcn.004a7698
jmp 0x4a79d4
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x4a79b2
mov edi, str.rowid
lea eax, [ebp - 0x94]
push edi
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call fcn.00452f10
add esp, 0xc
test bl, 5
je 0x4a7970
push 0x3d
jmp 0x4a798c
cmp esi, 0x30
jne 0x4a798f
push edi
lea eax, [ebp - 0x94]
push str.___AND__s
push eax
call fcn.00452f10
add esp, 0xc
push 0x3c
pop eax
jmp 0x4a799b
movzx eax, bl
shr eax, 4
and eax, 2
or eax, 0x3c
push eax
lea eax, [ebp - 0x94]
push 0x864f9c
push eax
call fcn.00452f10
add esp, 0xc
jmp 0x4a79d4
test ebx, 0x400
je 0x4a79d4
push dword [edi + 0x24]
lea eax, [ebp - 0x94]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call fcn.00452f10
add esp, 0x10
mov eax, dword [ebp - 0x74]
test byte [eax + 0x24], 8
je 0x4a79f0
lea eax, [ebp - 0x94]
push str._LEFT_JOIN
push eax
call fcn.00452f10
pop ecx
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00452afa
push 0xfffffffffffffffa
push eax
mov eax, dword [ebp - 0x98]
mov edx, 0xb9
push 0
push dword [eax + 0xe0]
mov eax, dword [ebp - 0x9c]
mov ecx, eax
push dword [eax + 0x6c]
call fcn.0046bac5
add esp, 0x14
mov ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00700c25
leave
ret
xor eax, eax
jmp 0x4a7a28