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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5c51004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x98], ebx
mov eax, dword [ebx + 0x78]
mov esi, ebx
test eax, eax
cmovne esi, eax
cmp byte [esi + 0xd7], 2
jne 0x5b9b0c8
movzx eax, byte [ecx + 0x3c]
mov edi, dword [ecx + 0x50]
lea eax, [eax + eax*8]
lea edx, [edx + eax*8]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x9c], eax
add edx, 8
mov eax, dword [ebx]
mov ebx, dword [edi + 0x2c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x8c], eax
test ebx, 0x2000
jne 0x5b9b0db
mov ax, word [ebp + 0xc]
test al, 0x20
jne 0x5b9b0db
mov esi, ebx
and esi, 0x30
jne 0x5b9ae69
test ebx, 0x400
jne 0x5b9ae61
cmp word [edi + 0x18], si
ja 0x5b9ae69
test al, 3
jne 0x5b9ae69
xor ecx, ecx
jmp 0x5b9ae6e
mov ecx, 1
lea eax, [ebp - 0x70]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x84], eax
test ecx, ecx
mov eax, dword [ebp - 0x8c]
push edx
mov dword [ebp - 0x88], eax
mov edx, str.SCAN
mov eax, str.SEARCH
mov dword [ebp - 0x80], 0x64
cmove eax, edx
mov dword [ebp - 0x7c], 0x3b9aca00
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push str._s__S
push eax
mov word [ebp - 0x74], 0x100
call fcn.05c1d7d0
add esp, 0x10
test ebx, 0x500
jne 0x5b9afad
mov eax, dword [ebp - 0x94]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x8c], ecx
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
je 0x5b9af10
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x5b9af10
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [ebp - 0x90], eax
cmove esi, eax
test esi, esi
je 0x5b9b04b
jmp 0x5b9af3e
test ebx, 0x20000
je 0x5b9af1f
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x5b9af3e
test ebx, 0x4000
je 0x5b9af2e
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x5b9af3e
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
mov ecx, dword [ebp - 0x78]
add ecx, 7
cmp ecx, dword [ebp - 0x80]
jb 0x5b9af60
push 7
mov edx, str._USING
lea ecx, [ebp - 0x88]
call fcn.05c1e010
add esp, 4
jmp 0x5b9af83
mov eax, dword [str._USING]
mov dword [ebp - 0x78], ecx
add ecx, dword [ebp - 0x84]
mov dword [ecx - 7], eax
mov ax, word [0x5c3d9f4]
mov word [ecx - 3], ax
mov al, byte [0x5c3d9f6]
mov byte [ecx - 1], al
mov eax, dword [ebp - 0x8c]
push dword [eax]
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.05c1d7d0
add esp, 0xc
lea ecx, [ebp - 0x88]
mov edx, edi
call fcn.05b9b0f0
jmp 0x5b9b04b
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x5b9b029
push str.rowid
lea eax, [ebp - 0x88]
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call fcn.05c1d7d0
add esp, 0xc
test bl, 5
je 0x5b9afe3
mov eax, 0x3d
jmp 0x5b9b012
cmp esi, 0x30
jne 0x5b9b006
push str.rowid
lea eax, [ebp - 0x88]
push str.___AND__s
push eax
call fcn.05c1d7d0
add esp, 0xc
lea eax, [esi + 0xc]
jmp 0x5b9b012
movzx eax, bl
shr eax, 4
and eax, 2
or eax, 0x3c
push eax
lea eax, [ebp - 0x88]
push str._c__
push eax
call fcn.05c1d7d0
add esp, 0xc
jmp 0x5b9b04b
test ebx, 0x400
je 0x5b9b04b
push dword [edi + 0x24]
lea eax, [ebp - 0x88]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call fcn.05c1d7d0
add esp, 0x10
mov eax, dword [ebp - 0x94]
test byte [eax + 0x24], 8
je 0x5b9b06b
lea eax, [ebp - 0x88]
push str._LEFT_JOIN
push eax
call fcn.05c1d7d0
add esp, 8
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x5b9b09d
mov eax, dword [ebp - 0x78]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x7c], 0
jbe 0x5b9b097
test byte [ebp - 0x73], 4
jne 0x5b9b097
lea ecx, [ebp - 0x88]
call fcn.05c1deb0
mov ecx, eax
jmp 0x5b9b09d
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x98]
mov edx, 0xb9
push 0xfffffffffffffffa
push ecx
push 0
push dword [eax + 0xe4]
mov eax, dword [ebp - 0x9c]
mov ecx, eax
push dword [eax + 0x6c]
call fcn.05bf9150
add esp, 0x14
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05b011bc
mov esp, ebp
pop ebp
ret