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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x50c7c4]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, edx
mov eax, ecx
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edi
mov ecx, dword [edi + 0x1c]
movdqu xmm0, xmmword [edx]
mov esi, dword [eax]
mov dword [esp + 8], eax
movdqu xmmword [esp + 0x40], xmm0
cmp dword [ecx + 0x18], 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
je 0x47c9ce
movzx ecx, byte [edi + 4]
sub ecx, 0x71
je 0x47c9b0
dec ecx
je 0x47c9a9
dec ecx
je 0x47c9a2
mov ecx, str.UNION
jmp 0x47c9b5
mov ecx, str.INTERSECT
jmp 0x47c9b5
mov ecx, str.EXCEPT
jmp 0x47c9b5
mov ecx, str.UNION_ALL
push ecx
push str.ORDER_BY_clause_should_come_after__s_not_before
push eax
call fcn.00437770
add esp, 0xc
mov edi, 1
jmp 0x47d1ec
cmp dword [ecx + 0x28], 0
je 0x47ca16
movzx ecx, byte [edi + 4]
sub ecx, 0x71
je 0x47c9f8
dec ecx
je 0x47c9f1
dec ecx
je 0x47c9ea
mov ecx, str.UNION
jmp 0x47c9fd
mov ecx, str.INTERSECT
jmp 0x47c9fd
mov ecx, str.EXCEPT
jmp 0x47c9fd
mov ecx, str.UNION_ALL
push ecx
push str.LIMIT_clause_should_come_after__s_not_before
push eax
call fcn.00437770
add esp, 0xc
mov edi, 1
jmp 0x47d1ec
mov esi, dword [eax + 0xc]
mov dword [esp + 0x20], esi
test esi, esi
jne 0x47ca50
mov ecx, dword [esp + 0x10]
call fcn.0044f4d0
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x20], esi
mov dword [eax + 0xc], esi
test esi, esi
je 0x47ca50
push 0
push 0
push 0
mov edx, 0x88
mov ecx, esi
call fcn.0044f5d0
add esp, 0xc
cmp byte [esp + 0x40], 9
jne 0x47ca87
mov eax, dword [edi]
mov edx, 0x29
push 0
mov ecx, esi
push dword [eax]
push dword [esp + 0x4c]
call fcn.0044f5d0
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
je 0x47ca82
mov eax, dword [esi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x10
mov byte [esp + 0x40], 8
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [edx]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x47cada
movzx eax, byte [edi + 4]
sub eax, 0x71
je 0x47cab9
dec eax
je 0x47cab2
dec eax
je 0x47caab
mov eax, str.UNION
jmp 0x47cabe
mov eax, str.INTERSECT
jmp 0x47cabe
mov eax, str.EXCEPT
jmp 0x47cabe
mov eax, str.UNION_ALL
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push dword [esp + 0x10]
call fcn.00437770
add esp, 0xc
mov edi, 1
jmp 0x47d1e8
cmp dword [edi + 0x18], 0
je 0x47cb04
mov ecx, dword [esp + 0x3c]
mov edx, edi
push ecx
mov ecx, dword [esp + 0xc]
call fcn.0047d5a0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x70
je 0x47ce76
dec eax
je 0x47cd6d
dec eax
je 0x47ce76
mov ecx, dword [esp + 8]
push 0
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x1c], edx
push edx
lea eax, [edx + 1]
mov edx, 0x29
mov dword [esp + 0x38], eax
inc eax
mov dword [ecx + 0x44], eax
mov ecx, esi
call fcn.0044f5d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
or word [eax + 6], 8
mov eax, dword [esp + 8]
mov dword [esp + 0x60], ecx
mov word [esp + 0x5c], 1
mov dword [esp + 0x64], 0
mov ecx, dword [eax + 0x230]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
mov dword [esp + 0x6c], 0
call fcn.00480980
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47d1da
push eax
push eax
push dword [esp + 0x34]
lea edx, [eax + 0x29]
mov ecx, esi
call fcn.0044f5d0
mov dword [edi + 0x3c], eax
add esp, 0xc
mov eax, dword [edi + 0x28]
mov edx, edi
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 8]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [eax + 0x230]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.00480980
mov ecx, dword [edi + 0x1c]
add esp, 4
movsd xmm0, qword [edi + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1c], eax
mov dword [esp + 0x38], ecx
movsd xmm1, qword [eax + 0x48]
comisd xmm0, xmm1
jbe 0x47cc29
movsd qword [edi + 0x48], xmm1
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x10]
call fcn.0045e5f0
cmp byte [esp + 0x40], 5
mov eax, dword [esp + 0xc]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x2c], eax
jne 0x47cc6c
mov eax, dword [edi + 0x1c]
mov ecx, edi
test eax, eax
je 0x47cc5c
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x47cc53
push dword [ecx]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0047c0c0
add esp, 4
mov ecx, esi
call fcn.0044f750
mov ecx, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.0044f750
mov ecx, dword [esp + 8]
mov edx, edi
push esi
mov dword [esp + 0x1c], eax
call fcn.0047c720
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, 0x41
push 0
push esi
push dword [esp + 0x1c]
call fcn.0044f5d0
mov ecx, dword [esp + 0x14]
add esp, 0xc
call fcn.00462a80
mov ecx, dword [esp + 0x20]
mov esi, eax
push 0
push esi
push dword [esp + 0x1c]
mov edx, 0x3b
call fcn.0044f5d0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, 0x31
mov edi, eax
push 0
push esi
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.0044f6d0
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.00462aa0
push dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x54]
mov esi, dword [esp + 0x2c]
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
push dword [eax]
push ecx
mov ecx, dword [esp + 0x34]
push eax
call fcn.0047b290
mov edx, esi
mov esi, dword [esp + 0x50]
mov ecx, esi
call fcn.0044f800
push 0
push edi
mov edi, dword [esp + 0x4c]
mov edx, 0x43
push edi
call fcn.0044f5d0
mov edx, dword [esp + 0x48]
add esp, 0x3c
mov ecx, esi
call fcn.0044f800
push 0
lea eax, [edi + 1]
mov edx, 0x2b
push 0
push eax
call fcn.0044f5d0
add esp, 0xc
mov ecx, esi
push 0
push 0
push edi
jmp 0x47d08e
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x230]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00480980
mov ecx, eax
mov dword [edi + 0x28], 0
add esp, 4
mov dword [esp + 0x1c], ecx
mov dword [edi + 0x2c], 0
test ecx, ecx
jne 0x47d1e4
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x30], ecx
mov eax, dword [eax + 0x34]
mov dword [edi + 0x34], eax
test ecx, ecx
je 0x47cde7
push 0
push 0
push ecx
mov edx, 0x73
mov ecx, esi
call fcn.0044f5d0
add esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edx, edi
mov ecx, dword [eax + 0x230]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00480980
mov ecx, dword [edi + 0x1c]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1c], eax
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax + 0x48]
addsd xmm0, qword [edi + 0x48]
movsd qword [edi + 0x48], xmm0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x47ce50
lea edx, [esp + 0x34]
call fcn.0045f370
test eax, eax
je 0x47ce50
movd xmm1, dword [esp + 0x34]
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x47ce50
movsd qword [edi + 0x48], xmm1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47d09f
mov edx, dword [esi + 0x1c]
cmp edx, eax
jle 0x47d09f
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
jmp 0x47d09f
cmp byte [esp + 0x40], 1
jne 0x47ce93
cmp dword [edi + 0x28], 0
jne 0x47ce93
cmp dword [edi + 0x2c], 0
jne 0x47ce93
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jmp 0x47cecb
mov ecx, dword [esp + 8]
push 0
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x1c], edx
push edx
lea eax, [edx + 1]
mov edx, 0x29
mov dword [ecx + 0x44], eax
mov ecx, esi
call fcn.0044f5d0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
or word [eax + 6], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 8]
mov word [esp + 0x6c], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [eax + 0x230]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.00480980
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47d1e4
cmp byte [edi + 4], 0x72
mov edx, edi
mov dword [edi + 0x1c], ecx
mov ecx, dword [edi + 0x28]
sete al
inc al
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x2c]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [eax + 0x230]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.00480980
mov edx, dword [edi + 0x18]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.0045f1a0
cmp byte [edi + 4], 0x70
mov ecx, dword [edi + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], 0
jne 0x47cf96
movsd xmm0, qword [eax + 0x48]
addsd xmm0, qword [edi + 0x48]
movsd qword [edi + 0x48], xmm0
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x10]
call fcn.0045e5f0
mov eax, dword [esp + 0x34]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x2c], eax
mov al, byte [esp + 0x40]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
cmp al, 1
je 0x47d09f
cmp al, 5
jne 0x47cff0
mov eax, dword [edi + 0x1c]
mov ecx, edi
test eax, eax
je 0x47cfe0
mov ecx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x47cfd7
push dword [ecx]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0047c0c0
add esp, 4
mov ecx, esi
call fcn.0044f750
mov ecx, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.0044f750
mov edx, dword [esp + 0x24]
mov edi, eax
mov ecx, dword [esp + 8]
push esi
call fcn.0047c720
add esp, 4
mov edx, 0x41
push 0
push esi
push dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0044f5d0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x4c]
mov esi, dword [esi + 0x1c]
add esp, 0xc
mov eax, dword [ecx]
push dword [esp + 0xc]
push edi
push edx
push 0xffffffffffffffff
push 0
push dword [eax]
mov edx, ecx
mov ecx, dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
call fcn.0047b290
mov edx, edi
mov edi, dword [esp + 0x40]
mov ecx, edi
call fcn.0044f800
push 0
push esi
mov esi, dword [esp + 0x3c]
mov edx, 0x43
push esi
call fcn.0044f5d0
mov edx, dword [esp + 0x38]
add esp, 0x2c
mov ecx, edi
call fcn.0044f800
push 0
push 0
push esi
mov edx, 0x2b
call fcn.0044f5d0
mov edi, dword [esp + 0x30]
add esp, 0xc
mov esi, dword [esp + 8]
xor eax, eax
cmp byte [edi + 4], 0x71
mov ecx, esi
movzx edx, byte [edi + 4]
setne al
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
call fcn.0047b860
add esp, 0xc
test byte [edi + 6], 8
je 0x47d1e4
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
lea edx, [eax + 4]
lea edx, [eax + edx*4]
call fcn.00435730
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x47d0f6
lea edi, [eax + 7]
jmp 0x47d1e8
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0xc], edx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4d]
mov byte [ecx + 4], al
mov eax, dword [esp + 0x28]
mov word [ecx + 6], ax
add ecx, 0xc
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x47d160
nop
push edx
mov edx, edi
mov ecx, esi
call fcn.0047c8f0
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x47d140
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [ecx], eax
mov edx, dword [esp + 0xc]
add ecx, 4
inc edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x28]
jl 0x47d120
jmp 0x47d160
lea esi, [edi + 0x38]
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x20]
nop
mov edx, dword [esi]
test edx, edx
js 0x47d1b4
cmp dword [edi + 0x1c], edx
jle 0x47d18d
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x20]
push 0xfffffffffffffffa
push dword [esp + 0x30]
mov ecx, edi
call fcn.0044fcc0
mov eax, dword [esp + 0x14]
add esp, 8
inc eax
mov dword [esi], 0xffffffff
add esi, 4
mov dword [esp + 0xc], eax
cmp eax, 2
jl 0x47d170
mov edi, dword [esp + 0x24]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x24], edi
test edi, edi
jne 0x47d160
push dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
push esi
call fcn.00435500
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x47d1ec
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
jmp 0x47d1ec
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x47d21d
mov edx, eax
mov ecx, esi
call fcn.0047a790
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.00435500
add esp, 8
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret