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

Disassembly:
sub esp, 0x78
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
push ebp
push esi
mov esi, dword [esp + 0x88]
movups xmm0, xmmword [eax]
push edi
mov edi, dword [esp + 0x90]
mov ebp, dword [esi + 8]
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebp
movups xmmword [esp + 0x34], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], eax
test ebp, ebp
jne 0x58c485
cmp dword [esi + 0x80], ebp
jne 0x58c476
test byte [ecx + 0x50], 8
jne 0x58c476
mov byte [esi + 0x17], 1
push esi
call fcn.005d3190
add esp, 4
mov dword [esp + 0x18], eax
mov ebp, eax
mov dl, byte [esp + 0x34]
cmp dl, 0xc
jne 0x58c4a8
mov ecx, dword [edi + 0x1c]
push dword [ecx]
push dword [esp + 0x3c]
push 0x76
push ebp
call fcn.005d2bc0
mov dl, 0xe
add esp, 0x10
mov byte [esp + 0x34], dl
test dword [edi + 4], 0x400
je 0x58c4ec
mov eax, dword [edi + 0x3c]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x2c], eax
mov esi, edi
mov ebx, 1
sete cl
cmp dword [edi + 0x44], 0
jne 0x58c4e1
nop dword [eax]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x58c538
mov esi, eax
add ebx, ecx
cmp dword [esi + 0x44], 0
je 0x58c4d0
mov esi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x28]
test dword [edi + 4], 0x2000
je 0x58c514
mov eax, edi
nop word [eax + eax]
test dword [eax + 4], 0x2000
je 0x58c5ae
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x58c500
cmp dword [edi + 0x30], 0
je 0x58c5c8
mov edx, dword [esp + 0x94]
push edx
push edi
push esi
call fcn.0058ce30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov ebp, dword [esp + 0x8c]
mov ecx, 0x692240
cmp ebx, 1
mov eax, 0x6a5e52
cmovne eax, ecx
push eax
push ebx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push ebp
call fcn.005dc1e0
mov edi, dword [esp + 0x40]
add esp, 0x14
push 1
push 1
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0xffffffffffffffff
push esi
push ebp
call fcn.0059b7f0
add esp, 0x20
test edi, edi
jne 0x58c58d
mov word [esi + 2], bx
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x58c565
mov edx, dword [esp + 0x94]
xor ecx, ecx
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x3c]
pop ebp
mov dword [edx + 0x10], eax
mov eax, ecx
pop ebx
add esp, 0x78
ret
lea eax, [esp + 0x34]
push eax
push edi
push esi
call fcn.005802a0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x58cc08
cmp dword [ebx + 0x34], 0
jne 0x58c5ef
push str.COMPOUND_QUERY
push 1
push esi
call fcn.005dc1e0
push str.LEFT_MOST_SUBQUERY
push 1
push esi
call fcn.005dc1e0
mov dl, byte [esp + 0x4c]
add esp, 0x18
movzx eax, byte [edi]
sub eax, 0x86
je 0x58ca1d
sub eax, 1
je 0x58c7f3
sub eax, 1
je 0x58ca1d
mov esi, dword [esi + 0x28]
mov ecx, dword [esp + 0x8c]
push 0
push esi
lea eax, [esi + 1]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
inc eax
push 0x76
push ebp
mov dword [ecx + 0x28], eax
call fcn.005d2bc0
push edi
mov dword [edi + 0x14], eax
call fcn.0057b7e0
or dword [eax + 4], 0x20
lea eax, [esp + 0x64]
push eax
push ebx
push dword [esp + 0xa8]
mov byte [esp + 0x70], 1
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.005c8dd0
mov ecx, eax
add esp, 0x20
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x58cc47
push eax
lea eax, [esi + 1]
push eax
push 0x76
push ebp
call fcn.005d2bc0
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x3c], eax
lea eax, [esi + 1]
mov dword [esp + 0x64], eax
movzx eax, byte [edi]
push eax
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
call fcn.005cc290
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0xac]
call fcn.005dc1e0
lea eax, [esp + 0x74]
push eax
push edi
push dword [esp + 0xb8]
call fcn.005c8dd0
mov dword [esp + 0x44], eax
add esp, 0x30
mov eax, dword [edi + 0x34]
mov dword [esp + 0x20], eax
mov dword [edi + 0x34], ebx
movzx eax, word [ebx + 2]
cmp word [edi + 2], ax
jle 0x58c70c
mov word [edi + 2], ax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x58c720
push eax
push dword [esp + 0x20]
call fcn.005afab0
add esp, 8
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x3c], eax
jne 0x58cbf2
mov ecx, dword [esp + 0x8c]
mov ebp, dword [ecx + 0x38]
dec ebp
push ebp
push edi
push ecx
lea ebx, [ebp - 1]
mov dword [ecx + 0x38], ebx
call fcn.00572e50
mov edi, dword [esp + 0x24]
push ebp
push esi
push 0x24
push edi
call fcn.005d2bc0
push dword [esp + 0xa8]
call fcn.005b8280
mov esi, eax
push esi
push dword [esp + 0x4c]
push 0x86
push edi
call fcn.005d2bc0
push 0
push esi
push ebx
push dword [esp + 0x60]
mov edi, eax
push 0x1c
push dword [esp + 0x5c]
call fcn.005d2d00
add esp, 0x48
push esi
push dword [esp + 0x90]
call fcn.005c6e70
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push ebp
push ebx
push eax
push 0
push 0
push esi
push dword [esp + 0xb0]
push dword [esp + 0xb0]
call fcn.0059b7f0
push ebx
mov ebx, dword [esp + 0x44]
push ebx
call fcn.005df080
push edi
push esi
push 0x27
push ebx
call fcn.005d2bc0
add esp, 0x40
push ebp
mov ebp, ebx
push ebp
call fcn.005df080
push 0
lea eax, [esi + 1]
push eax
push 0x7a
push ebp
call fcn.005d2bc0
jmp 0x58cbdd
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push ebx
push esi
call fcn.005c8dd0
mov ecx, eax
mov dword [ebx + 0x3c], 0
add esp, 0xc
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x58cda5
mov dword [edi + 0x34], eax
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x58c871
push ecx
push 0x11
push ebp
call fcn.005d2b60
mov ecx, dword [edi + 0xc]
add esp, 0xc
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x58c871
push ecx
inc ecx
push ecx
push dword [edi + 8]
push 0xa0
push ebp
call fcn.005d2c20
add esp, 0x14
push str.UNION_ALL
push 1
push esi
call fcn.005dc1e0
lea eax, [esp + 0x40]
push eax
push edi
push esi
call fcn.005c8dd0
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x38], eax
mov dword [edi + 0x34], ebx
movzx eax, word [ebx + 2]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.005bcae0
mov ecx, dword [edi + 0x3c]
add esp, 0x20
mov word [esp + 0x10], ax
mov word [edi + 2], ax
test ecx, ecx
je 0x58ca02
lea eax, [esp + 0x2c]
push eax
push dword [ecx + 0xc]
call fcn.005b0730
add esp, 8
test eax, eax
je 0x58ca02
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x58ca02
cdq
mov ebx, 0x28
mov esi, edx
mov ecx, eax
test esi, esi
ja 0x58c925
jb 0x58c902
cmp eax, 8
jae 0x58c91a
test esi, esi
ja 0x58c906
jb 0x58c902
cmp eax, 2
jae 0x58c906
xor eax, eax
jmp 0x58c96c
shld esi, eax, 1
sub ebx, 0xa
add eax, eax
test esi, esi
jne 0x58c957
cmp eax, 8
jb 0x58c906
jmp 0x58c957
test esi, esi
jne 0x58c925
cmp eax, 0xff
jbe 0x58c93c
shrd eax, esi, 4
add ebx, 0x28
shr esi, 4
test esi, esi
ja 0x58c925
jb 0x58c945
cmp eax, 0xff
ja 0x58c925
test esi, esi
jne 0x58c945
cmp eax, 0xf
jbe 0x58c957
shrd eax, esi, 1
add ebx, 0xa
shr esi, 1
jne 0x58c945
jb 0x58c957
cmp eax, 0xf
ja 0x58c945
and eax, 7
mov ax, word [eax*2 + 0x6d5140]
sub ax, 0xa
add ax, bx
movzx eax, ax
cmp word [esp + 0x10], ax
jle 0x58ca02
mov esi, 0x28
test edx, edx
ja 0x58c9b6
jb 0x58c992
cmp ecx, 8
jae 0x58c9aa
test edx, edx
ja 0x58c996
jb 0x58c992
cmp ecx, 2
jae 0x58c996
xor eax, eax
jmp 0x58c9fe
shld edx, ecx, 1
sub esi, 0xa
add ecx, ecx
test edx, edx
jne 0x58c9e9
cmp ecx, 8
jb 0x58c996
jmp 0x58c9e9
test edx, edx
jne 0x58c9b6
cmp ecx, 0xff
jbe 0x58c9ce
shrd ecx, edx, 4
add esi, 0x28
shr edx, 4
test edx, edx
ja 0x58c9b6
jb 0x58c9d7
cmp ecx, 0xff
ja 0x58c9b6
test edx, edx
jne 0x58c9d7
cmp ecx, 0xf
jbe 0x58c9e9
shrd ecx, edx, 1
add esi, 0xa
shr edx, 1
jne 0x58c9d7
jb 0x58c9e9
cmp ecx, 0xf
ja 0x58c9d7
and ecx, 7
mov ax, word [ecx*2 + 0x6d5140]
sub ax, 0xa
add ax, si
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x58cbf2
push eax
push ebp
call fcn.005dcb50
add esp, 8
jmp 0x58cbf2
cmp dl, 1
jne 0x58ca2c
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], esi
jmp 0x58ca5b
mov esi, dword [esi + 0x28]
mov ecx, dword [esp + 0x8c]
push 0
push esi
lea eax, [esi + 1]
mov dword [esp + 0x18], esi
push 0x76
push ebp
mov dword [ecx + 0x28], eax
call fcn.005d2bc0
push edi
mov dword [edi + 0x14], eax
call fcn.0057b7e0
add esp, 0x14
or dword [eax + 4], 0x20
lea eax, [esp + 0x6c]
mov byte [esp + 0x6c], 1
push eax
push ebx
push dword [esp + 0x94]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.005c8dd0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x58cc47
cmp byte [edi], 0x88
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
sete al
inc al
mov dword [edi + 0x3c], ecx
mov byte [esp + 0x6c], al
movzx eax, byte [edi]
push eax
call fcn.005cc290
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x9c]
call fcn.005dc1e0
lea eax, [esp + 0x80]
push eax
push edi
push dword [esp + 0xa8]
call fcn.005c8dd0
add esp, 0x20
mov dword [esp + 0x14], eax
cmp byte [edi], 0x86
mov eax, dword [edi + 0x34]
mov dword [esp + 0x20], eax
mov dword [edi + 0x34], ebx
mov dword [edi + 0x30], 0
jne 0x58cb31
movzx eax, word [ebx + 2]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.005bcae0
add esp, 8
mov word [edi + 2], ax
mov eax, dword [edi + 0x3c]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x58cb46
push eax
push ebx
call fcn.005afab0
add esp, 8
cmp byte [esp + 0x34], 1
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
je 0x58cbf2
cmp byte [ebx + 0x57], 0
jne 0x58cbf2
mov ecx, dword [esp + 0x8c]
mov ebx, dword [ecx + 0x38]
dec ebx
push ebx
push dword [esp + 0x94]
lea edi, [ebx - 1]
push ecx
mov dword [ecx + 0x38], edi
call fcn.00572e50
push ebx
push esi
push 0x24
push ebp
call fcn.005d2bc0
mov esi, dword [ebp + 0x6c]
lea eax, [esp + 0x50]
push ebx
push edi
push eax
push 0
push 0
push dword [esp + 0x40]
push dword [esp + 0xc4]
push dword [esp + 0xc4]
call fcn.0059b7f0
push edi
push ebp
call fcn.005df080
add esp, 0x44
push esi
mov esi, dword [esp + 0x14]
push esi
push 0x27
push ebp
call fcn.005d2bc0
push ebx
push ebp
call fcn.005df080
push 0
push esi
push 0x7a
push ebp
call fcn.005d2bc0
mov edi, dword [esp + 0xb8]
add esp, 0x28
cmp dword [edi + 0x38], 0
mov esi, dword [esp + 0x8c]
jne 0x58cc08
push esi
call fcn.005dc240
add esp, 4
cmp dword [esi + 0x24], 0
jne 0x58cda1
test byte [edi + 4], 0x20
je 0x58cda1
mov eax, dword [edi + 0x1c]
push 1
mov eax, dword [eax]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x34], eax
call fcn.005bba30
mov esi, eax
add esp, 0xc
mov dword [esp + 0x30], esi
test esi, esi
jne 0x58cc53
mov ecx, 7
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x8c]
jmp 0x58cda5
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x28], ebx
jle 0x58ccd3
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov eax, dword [edi + 0x34]
test eax, eax
je 0x58cc8d
push ebx
push eax
push ebp
call fcn.0058cde0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x58ccab
jmp 0x58cc8f
xor eax, eax
mov edx, dword [edi + 0x1c]
cmp ebx, dword [edx]
jge 0x58ccab
mov eax, dword [esp + 0x24]
push dword [edx + eax + 8]
push ebp
call fcn.005af430
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x58ccba
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [ecx], eax
add dword [esp + 0x24], 0x14
inc ebx
add ecx, 4
mov dword [esp + 0x10], ecx
cmp ebx, esi
jl 0x58cc71
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
xor ebx, ebx
add edi, 0x14
nop dword [eax + eax]
mov edx, dword [edi]
test edx, edx
js 0x58cd70
mov eax, dword [ebp]
cmp byte [eax + 0x57], 0
je 0x58ccfa
mov eax, 0x6ecf90
jmp 0x58cd03
mov eax, dword [ebp + 0x68]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esi]
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [ebp]
cmp byte [eax + 0x57], 0
je 0x58cd37
cmp dword [eax + 0x210], 0
jne 0x58cd5d
mov dword [esi], ecx
test ecx, ecx
jne 0x58cd5d
push esi
push dword [esi + 0xc]
call fcn.005a9e10
add esp, 8
jmp 0x58cd5d
mov eax, dword [ebp + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x58cd56
push 0xfffffffffffffff8
push esi
push eax
push ebp
call fcn.005ee540
add esp, 0x10
jmp 0x58cd5d
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf8
mov dword [edi], 0xffffffff
inc ebx
add edi, 4
cmp ebx, 2
jl 0x58cce0
mov edi, dword [esp + 0x90]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x90], edi
test edi, edi
jne 0x58ccd3
add dword [esi], 0xffffffff
jne 0x58cd9a
push esi
push dword [esi + 0xc]
call fcn.005a9e10
add esp, 8
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x58cdd5
push eax
push fcn.005cbed0
push esi
call fcn.005c0350
mov ecx, dword [esp + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x78
ret