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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x556358]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, edx
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
movups xmm0, xmmword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x30]
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x34], edx
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x4c], xmm0
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
push edi
mov edi, dword [ecx]
mov dword [esp + 0x10], edi
test edx, edx
jne 0x471f4d
cmp dword [eax + 0x38], edx
jne 0x471f4d
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x47172c
cmp dword [ecx + 0x78], edi
jne 0x471721
mov eax, dword [esp + 0x10]
test byte [eax + 0x44], 8
jne 0x471721
mov byte [ecx + 0x17], 1
call fcn.004334f0
mov edi, eax
mov dword [esp + 0x18], eax
mov cl, byte [esp + 0x40]
cmp cl, 0xc
jne 0x471752
mov eax, dword [esi]
mov edx, 0x6c
mov ecx, edi
push dword [eax]
push dword [esp + 0x48]
call fcn.004339a0
mov cl, 0xe
add esp, 8
mov byte [esp + 0x40], cl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x471776
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.00471630
add esp, 4
mov esi, eax
jmp 0x471ee0
test eax, 0x2000
je 0x4717ee
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.00470e50
add esp, 4
mov edi, dword [esp + 0x18]
movzx edx, byte [esi + 4]
xor eax, eax
cmp byte [esi + 4], 0x74
mov ecx, dword [esp + 8]
setne al
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
call fcn.0046f740
add esp, 0xc
test byte [esi + 8], 0x20
je 0x471edc
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x30], eax
call fcn.0046f5c0
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
jne 0x471da8
lea esi, [eax + 7]
jmp 0x471ee0
cmp dword [esi + 0x2c], 0
je 0x47181b
mov ecx, dword [esp + 0x38]
mov edx, esi
push ecx
mov ecx, dword [esp + 0xc]
call fcn.004724e0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x73
je 0x471b95
sub eax, 1
je 0x471a60
sub eax, 1
je 0x471b95
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x24], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6c
mov dword [esp + 0x34], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.004339a0
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x471879
nop
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x471870
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 8]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
mov dword [esp + 0x7c], 0
call fcn.00476240
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x471edc
push eax
push dword [esp + 0x30]
lea edx, [eax + 0x6c]
mov ecx, edi
call fcn.004339a0
mov dword [esi + 0x18], eax
mov edx, esi
mov eax, dword [esi + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.00476240
mov dword [esp + 0x20], eax
add esp, 0xc
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x30], eax
movzx eax, word [eax + 6]
cmp word [esi + 6], ax
jle 0x47194d
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x47195d
mov ecx, dword [esp + 0x10]
call fcn.00449b20
mov eax, dword [esp + 0xc]
mov ecx, edi
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
call fcn.00433fb0
mov esi, eax
mov ecx, edi
mov dword [esp + 0xc], esi
call fcn.00433fb0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 8]
push esi
mov dword [esp + 0x20], eax
call fcn.00470bb0
add esp, 4
mov edx, 0x25
mov ecx, edi
push esi
push dword [esp + 0x24]
call fcn.004339a0
mov ecx, dword [esp + 0x10]
call fcn.00450a30
mov esi, eax
mov edx, 0x7a
push esi
push dword [esp + 0x2c]
mov ecx, edi
call fcn.004339a0
mov ecx, dword [esp + 0x28]
mov edx, 0x1d
push 0
push esi
push dword [esp + 0x34]
mov edi, eax
push dword [esp + 0x48]
call fcn.00433ea0
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.00450a50
push dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push 0
push 0
push dword [esp + 0x54]
call fcn.0046e910
mov ecx, dword [esp + 0x50]
mov edx, esi
call fcn.00434000
mov esi, dword [esp + 0x58]
mov edx, 7
push edi
push esi
mov edi, ecx
call fcn.004339a0
mov edx, dword [esp + 0x4c]
add esp, 0x40
mov ecx, edi
call fcn.00434000
lea eax, [esi + 1]
mov edx, 0x70
push 0
push eax
call fcn.004339a0
push 0
push esi
mov edx, 0x70
mov ecx, edi
call fcn.004339a0
mov esi, dword [esp + 0x34]
add esp, 0x10
jmp 0x471794
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x1a0]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x40]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00476240
mov ecx, eax
mov dword [esi + 0x38], 0
add esp, 4
mov dword [esp + 0x14], ecx
mov dword [esi + 0x3c], 0
test ecx, ecx
jne 0x471edc
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x471b04
push ecx
mov edx, 0x16
mov ecx, edi
call fcn.00433930
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x471b04
push ecx
inc ecx
mov edx, 0x93
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.00433850
add esp, 0xc
mov eax, dword [esp + 8]
mov edx, esi
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00476240
mov cx, word [esi + 6]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x30], eax
mov dx, word [eax + 6]
call fcn.00417920
mov edx, dword [esp + 0x1c]
mov word [esi + 6], ax
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x471b7b
lea edx, [esp + 0x3c]
call fcn.0044b010
test eax, eax
je 0x471b7b
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x471b7b
cdq
push edx
push eax
call fcn.00417980
add esp, 8
cmp word [esi + 6], ax
jle 0x471b7b
mov word [esi + 6], ax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x471790
mov edx, eax
mov ecx, edi
call fcn.00434350
jmp 0x471790
cmp cl, 1
jne 0x471ba4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
jmp 0x471be4
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x24], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6c
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.004339a0
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x471bdc
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x471bd3
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 8]
mov byte [esp + 0x84], 1
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 0
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
mov dword [esp + 0x94], 0
call fcn.00476240
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x471edc
cmp byte [esi + 4], 0x75
mov edx, esi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
sete al
inc al
mov dword [esi + 0x38], ecx
mov byte [esp + 0x84], al
mov eax, dword [esp + 8]
mov dword [esi + 0x3c], ecx
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.00476240
mov edx, dword [esi + 0x2c]
add esp, 4
mov dword [esp + 0x14], eax
test edx, edx
je 0x471ca3
mov ecx, dword [esp + 0x10]
call fcn.0044ab60
cmp byte [esi + 4], 0x73
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 0
jne 0x471ccf
mov dx, word [eax + 6]
mov cx, word [esi + 6]
call fcn.00417920
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x471cdf
mov ecx, dword [esp + 0x10]
call fcn.00449b20
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x3c], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x471790
mov ecx, edi
call fcn.00433fb0
mov esi, eax
mov ecx, edi
mov dword [esp + 0xc], esi
call fcn.00433fb0
mov edx, dword [esp + 0x24]
mov edi, eax
mov ecx, dword [esp + 8]
push esi
call fcn.00470bb0
add esp, 4
mov edx, 0x25
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004339a0
push dword [esp + 0x14]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x88]
push edi
push eax
push 0
push 0
push dword [esp + 0x3c]
call fcn.0046e910
mov edx, edi
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00434000
push esi
mov esi, dword [esp + 0x44]
mov edx, 7
push esi
call fcn.004339a0
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.00434000
push 0
push esi
mov edx, 0x70
call fcn.004339a0
mov esi, dword [esp + 0x54]
add esp, 0x30
jmp 0x471794
lea eax, [esi + 0x14]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0xc], eax
cmp dword [esp + 0x2c], eax
jle 0x471e01
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 8]
push eax
mov edx, edi
mov ecx, esi
call fcn.00470d00
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x471de3
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
add ecx, 4
inc eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x2c]
jl 0x471dc3
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
nop word [eax + eax]
add eax, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], eax
nop
mov eax, dword [eax]
test eax, eax
js 0x471eae
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
je 0x471e39
mov ecx, 0x55b424
jmp 0x471e42
mov ecx, dword [edi + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
inc dword [esi]
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
je 0x471e63
push esi
mov edx, 0xfffffff7
call fcn.00434500
add esp, 4
jmp 0x471e8b
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x471e84
push 0xfffffffffffffff7
push esi
mov edx, eax
mov ecx, edi
call fcn.004346e0
add esp, 8
jmp 0x471e8b
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x28], eax
cmp ecx, 2
jl 0x471e20
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x471e10
add dword [esi], 0xffffffff
jne 0x471edc
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x471f42
cmp dword [ecx + 0x1d0], eax
je 0x471f22
mov edx, esi
call fcn.00413520
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x471f0c
push 1
mov edx, eax
mov ecx, edi
call fcn.0046d880
add esp, 4
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
cmp esi, dword [ecx + 0x128]
jb 0x471f42
cmp esi, dword [ecx + 0x12c]
jae 0x471f42
mov eax, dword [ecx + 0x124]
mov dword [esi], eax
mov dword [ecx + 0x124], esi
jmp 0x471edc
push esi
call fcn.004134b0
add esp, 4
jmp 0x471edc
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x471f75
sub eax, 1
je 0x471f6e
sub eax, 1
je 0x471f67
mov eax, str.UNION
jmp 0x471f7a
mov eax, str.INTERSECT
jmp 0x471f7a
mov eax, str.EXCEPT
jmp 0x471f7a
mov eax, str.UNION_ALL
push eax
test edx, edx
mov eax, str.ORDER_BY
mov esi, str.LIMIT
cmove eax, esi
push eax
push str._s_clause_should_come_after__s_not_before
push ecx
call fcn.00416560
add esp, 0x10
mov esi, 1
jmp 0x471ee4