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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
mov ebx, edx
mov edx, ecx
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], edx
mov eax, dword [edx + 0x74]
mov esi, edx
test eax, eax
cmovne esi, eax
cmp byte [esi + 0xcf], 2
jne 0x4f55de
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x38]
mov edi, dword [ecx + 0x4c]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ebx + eax*8]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 8]
mov edx, dword [edx]
mov dword [esp + 0x30], eax
test ebx, 0x2000
jne 0x4f562b
mov cx, word [ebp + 0xc]
test cl, 0x20
jne 0x4f562b
mov eax, ebx
and eax, 0x30
mov dword [esp + 0x24], eax
jne 0x4f5370
mov esi, ebx
and esi, 0x400
jne 0x4f5367
cmp word [edi + 0x18], si
ja 0x4f5370
test cl, 3
jne 0x4f5370
xor ecx, ecx
jmp 0x4f537d
mov esi, ebx
mov ecx, 1
and esi, 0x400
push dword [esp + 0x28]
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
test ecx, ecx
mov edx, str.SCAN
mov dword [esp + 0x30], ecx
mov eax, str.SEARCH
mov dword [esp + 0x18], 0x64
cmove eax, edx
mov dword [esp + 0x1c], 0x3b9aca00
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0
push str._s__S
push eax
mov word [esp + 0x30], 0x100
call fcn.0046eee0
add esp, 0x10
test ebx, 0x500
jne 0x4f54a9
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
je 0x4f5413
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x4f5413
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [esp + 0x2c], eax
cmove esi, eax
test esi, esi
je 0x4f553f
jmp 0x4f5441
test ebx, 0x20000
je 0x4f5422
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x4f5441
test ebx, 0x4000
je 0x4f5431
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x4f5441
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
mov ecx, dword [esp + 0x1c]
add ecx, 7
cmp ecx, dword [esp + 0x14]
jb 0x4f5463
push 7
mov edx, str._USING
lea ecx, [esp + 0x10]
call fcn.0046e840
add esp, 4
jmp 0x4f5485
mov eax, dword [str._USING]
mov dword [esp + 0x1c], ecx
add ecx, dword [esp + 0x10]
mov dword [ecx - 7], eax
mov ax, word [0x5a3f68]
mov word [ecx - 3], ax
mov al, byte [0x5a3f6a]
mov byte [ecx - 1], al
mov eax, dword [esp + 0x24]
push dword [eax]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0046eee0
add esp, 0xc
lea ecx, [esp + 0xc]
mov edx, edi
call fcn.004f5150
jmp 0x4f553f
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x4f5523
push str.rowid
lea eax, [esp + 0x10]
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call fcn.0046eee0
add esp, 0xc
test bl, 5
je 0x4f54dd
mov eax, 0x3d
jmp 0x4f550e
cmp dword [esp + 0x24], 0x30
jne 0x4f5502
push str.rowid
lea eax, [esp + 0x10]
push str.___AND__s
push eax
call fcn.0046eee0
add esp, 0xc
mov eax, 0x3c
jmp 0x4f550e
movzx eax, bl
shr eax, 4
and eax, 2
or eax, 0x3c
push eax
lea eax, [esp + 0x10]
push str._c__
push eax
call fcn.0046eee0
add esp, 0xc
jmp 0x4f553f
test esi, esi
je 0x4f553f
push dword [edi + 0x24]
lea eax, [esp + 0x10]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call fcn.0046eee0
add esp, 0x10
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4f556e
mov eax, dword [esp + 0x1c]
mov byte [eax + esi], 0
cmp dword [esp + 0x18], 0
jbe 0x4f556a
test byte [esp + 0x21], 4
jne 0x4f556a
lea ecx, [esp + 0xc]
call fcn.0046e920
mov esi, eax
jmp 0x4f556e
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edi, dword [ebx + 0x74]
mov edx, dword [eax + 0xdc]
cmp dword [ebx + 0x78], edi
jg 0x4f559b
push 0
push edx
push edi
mov edx, 0xb7
mov ecx, ebx
call fcn.00490b70
add esp, 0xc
mov edi, eax
jmp 0x4f55c6
lea eax, [edi + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb7
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
mov eax, edi
cmp byte [ecx + 0x57], 0
je 0x4f55e7
push esi
mov edx, 0xfffffff9
call fcn.00491680
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jns 0x4f55ef
mov eax, dword [ebx + 0x74]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x70]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4f5617
push 0xfffffffffffffff9
push esi
mov edx, eax
mov ecx, ebx
call fcn.004918d0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4f55de
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret