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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5ff1d4]
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 0x480628
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 0x48063b
mov ax, word [ebp + 0xc]
test al, 0x20
jne 0x48063b
mov esi, ebx
and esi, 0x30
jne 0x4803c9
test ebx, 0x400
jne 0x4803c1
cmp word [edi + 0x18], si
ja 0x4803c9
test al, 3
jne 0x4803c9
xor ecx, ecx
jmp 0x4803ce
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.00408aa0
add esp, 0x10
test ebx, 0x500
jne 0x48050d
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 0x480470
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x480470
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [ebp - 0x90], eax
cmove esi, eax
test esi, esi
je 0x4805ab
jmp 0x48049e
test ebx, 0x20000
je 0x48047f
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x48049e
test ebx, 0x4000
je 0x48048e
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x48049e
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 0x4804c0
push 7
mov edx, str._USING
lea ecx, [ebp - 0x88]
call fcn.004083a0
add esp, 4
jmp 0x4804e3
mov eax, dword [str._USING]
mov dword [ebp - 0x78], ecx
add ecx, dword [ebp - 0x84]
mov dword [ecx - 7], eax
mov ax, word [0x5d1484]
mov word [ecx - 3], ax
mov al, byte [0x5d1486]
mov byte [ecx - 1], al
mov eax, dword [ebp - 0x8c]
push dword [eax]
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00408aa0
add esp, 0xc
lea ecx, [ebp - 0x88]
mov edx, edi
call fcn.00480190
jmp 0x4805ab
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x480589
push str.rowid
lea eax, [ebp - 0x88]
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call fcn.00408aa0
add esp, 0xc
test bl, 5
je 0x480543
mov eax, 0x3d
jmp 0x480572
cmp esi, 0x30
jne 0x480566
push str.rowid
lea eax, [ebp - 0x88]
push str.___AND__s
push eax
call fcn.00408aa0
add esp, 0xc
lea eax, [esi + 0xc]
jmp 0x480572
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.00408aa0
add esp, 0xc
jmp 0x4805ab
test ebx, 0x400
je 0x4805ab
push dword [edi + 0x24]
lea eax, [ebp - 0x88]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call fcn.00408aa0
add esp, 0x10
mov eax, dword [ebp - 0x94]
test byte [eax + 0x24], 8
je 0x4805cb
lea eax, [ebp - 0x88]
push str._LEFT_JOIN
push eax
call fcn.00408aa0
add esp, 8
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x4805fd
mov eax, dword [ebp - 0x78]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x7c], 0
jbe 0x4805f7
test byte [ebp - 0x73], 4
jne 0x4805f7
lea ecx, [ebp - 0x88]
call fcn.00408490
mov ecx, eax
jmp 0x4805fd
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.0042a830
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.00533fc6
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.00533fc6
mov esp, ebp
pop ebp
ret