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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push esi
mov esi, dword [edi + 0x78]
xor eax, eax
test esi, esi
mov ebx, edx
jne 0x48de49
mov esi, edi
cmp byte [esi + 0xd7], 2
jne 0x48e17a
movzx eax, byte [ecx + 0x3c]
mov ecx, dword [ecx + 0x50]
lea eax, [eax + eax*8]
lea edx, [ebx + eax*8 + 8]
mov ebx, dword [ecx + 0x2c]
test ebx, 0x2000
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jne 0x48e178
mov al, byte [ebp + 8]
test al, 0x20
jne 0x48e178
mov esi, ebx
and esi, 0x30
mov dword [esp + 0x24], esi
jne 0x48deaf
test ebx, 0x400
jne 0x48dea7
cmp word [ecx + 0x18], 0
ja 0x48deaf
test al, 3
jne 0x48deaf
xor esi, esi
jmp 0x48deb4
mov esi, 1
test esi, esi
mov eax, dword [edi]
lea ecx, [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x64
mov dword [esp + 0x14], 0x3b9aca00
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 1
mov eax, str.SEARCH
jne 0x48def2
mov eax, str.SCAN
push edx
push eax
lea edx, [esp + 0x10]
push str._s__S
push edx
call fcn.0041bcb0
add esp, 0x10
test ebx, 0x500
jne 0x48dfe9
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
test byte [eax + 0x1c], 0x80
mov dword [esp + 0x24], ecx
je 0x48df44
mov edx, dword [ecx + 0x38]
and dl, 3
cmp dl, 2
jne 0x48df44
test esi, esi
je 0x48e07f
mov ebx, str.PRIMARY_KEY
jmp 0x48df71
test ebx, 0x20000
je 0x48df53
mov ebx, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x48df71
test ebx, 0x4000
je 0x48df62
mov ebx, str.AUTOMATIC_COVERING_INDEX
jmp 0x48df71
test bl, 0x40
mov ebx, str.COVERING_INDEX__s
jne 0x48df71
mov ebx, str.INDEX__s
mov eax, dword [esp + 0x18]
add eax, 7
cmp eax, dword [esp + 0x10]
jb 0x48df9a
push str._USING
mov eax, 7
lea ecx, [esp + 0xc]
call fcn.0041b5c0
mov ecx, dword [esp + 0x28]
add esp, 4
jmp 0x48dfc2
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [eax + edx - 7]
mov edx, dword [str._USING]
mov dword [eax], edx
mov dx, word [0x4cb25c]
mov word [eax + 4], dx
mov dl, byte [0x4cb25e]
mov byte [eax + 6], dl
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.0041bcb0
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
lea eax, [esp + 0xc]
call fcn.0048dc90
add esp, 4
jmp 0x48e07f
test ebx, 0x100
je 0x48e059
test bl, 0xf
je 0x48e059
push str.rowid
lea eax, [esp + 0xc]
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call fcn.0041bcb0
add esp, 0xc
test bl, 5
je 0x48e016
mov bl, 0x3d
jmp 0x48e041
cmp dword [esp + 0x24], 0x30
jne 0x48e038
push str.rowid
lea ecx, [esp + 0xc]
push str.___AND__s
push ecx
call fcn.0041bcb0
add esp, 0xc
mov bl, 0x3c
jmp 0x48e041
shr bl, 4
and bl, 2
or bl, 0x3c
movsx edx, bl
push edx
lea eax, [esp + 0xc]
push str._c__
push eax
call fcn.0041bcb0
add esp, 0xc
jmp 0x48e07f
test ebx, 0x400
je 0x48e07f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x18]
push ecx
push edx
lea eax, [esp + 0x10]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call fcn.0041bcb0
add esp, 0x10
mov ecx, dword [esp + 0x2c]
test byte [ecx + 0x24], 8
je 0x48e09b
lea edx, [esp + 8]
push str._LEFT_JOIN
push edx
call fcn.0041bcb0
add esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48e0c8
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], 0
cmp dword [esp + 0x14], 0
jbe 0x48e0c4
test byte [esp + 0x1d], 4
jne 0x48e0c4
lea esi, [esp + 8]
call fcn.0041b6b0
jmp 0x48e0c8
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0xe4]
push 0
push ecx
mov ebx, eax
mov eax, dword [edx + 0x6c]
push eax
push 0xb9
push edx
call fcn.0043c3f0
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
add esp, 0x14
cmp byte [ecx + 0x57], 0
mov esi, eax
je 0x48e119
mov eax, ebx
mov edx, 0xfffffffa
call fcn.0043cde0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b76e6
mov esp, ebp
pop ebp
ret
test esi, esi
jge 0x48e123
mov eax, dword [edx + 0x6c]
sub eax, 1
mov ecx, dword [edx + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x48e157
push ebx
mov eax, 0xfffffffa
call fcn.0043ced0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b76e6
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x48e162
mov dword [ecx + 0x10], ebx
mov byte [ecx + 1], 0xfa
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b76e6
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop esi
pop ebx
xor ecx, esp
call fcn.004b76e6
mov esp, ebp
pop ebp
ret